Skip to content

Commit

Permalink
Merge pull request #4940 from 3liz/backport-4936-to-release_3_9
Browse files Browse the repository at this point in the history
[Backport release_3_9] Tests - Add a quick test about tooltip
  • Loading branch information
Gustry authored Nov 6, 2024
2 parents 5222fb9 + b31881a commit 38cbb4f
Show file tree
Hide file tree
Showing 3 changed files with 643 additions and 76 deletions.
26 changes: 26 additions & 0 deletions tests/end2end/playwright/tooltip.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// @ts-check
import { test, expect } from '@playwright/test';
import { gotoMap } from './globals';

test.describe('Tooltip', () => {

test('Test HTML template', async ({ page }) => {
const url = '/index.php/view/map?repository=testsrepository&project=tooltip';
await gotoMap(url, page);
await page.locator('#button-tooltip-layer').click();

await page.locator('#tooltip-layer').getByRole('combobox').selectOption('quartiers');
// To be continued
});

test('Test fields', async ({ page }) => {
const url = '/index.php/view/map?repository=testsrepository&project=tooltip';
await gotoMap(url, page);
await page.locator('#button-tooltip-layer').click();

await page.locator('#tooltip-layer').getByRole('combobox').selectOption('quartiers-fields');
// TODO to be fixed
await expect(page.locator('#message')).toBeVisible();
});

});
Loading

0 comments on commit 38cbb4f

Please sign in to comment.