Skip to content

Commit

Permalink
- try to get rid of flaky tests by adding waitForTimeout to
Browse files Browse the repository at this point in the history
mapFeature.test.js and layerContextMenuKeyboard.test.js
  • Loading branch information
prushfor authored and prushfor committed Feb 10, 2024
1 parent b4336bf commit 741baf4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/core/layerContextMenuKeyboard.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ test.describe('Playwright Layer Context Menu Tests', () => {
.press('Shift+F10');
// trigger the Zoom to layer function by hitting enter or spacebar
await page.locator('text=Zoom To Layer (Z)').press('Enter');
await page.waitForTimeout(1000);
await page.waitForTimeout(2000);

lat = await page.evaluate(
() => +document.querySelector('mapml-viewer').lat
Expand Down
1 change: 1 addition & 0 deletions test/e2e/core/mapFeature.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ test.describe('MapFeature Events', () => {
});

test('Custom Click event - stopPropagation', async () => {
await page.waitForTimeout(1000);
// Click on polygon
await page
.locator(
Expand Down

0 comments on commit 741baf4

Please sign in to comment.