From 741baf45132b52d122adf3871278ed9278d0d253 Mon Sep 17 00:00:00 2001 From: prushfor Date: Sat, 10 Feb 2024 07:36:03 -0500 Subject: [PATCH] - try to get rid of flaky tests by adding waitForTimeout to mapFeature.test.js and layerContextMenuKeyboard.test.js --- test/e2e/core/layerContextMenuKeyboard.test.js | 2 +- test/e2e/core/mapFeature.test.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/test/e2e/core/layerContextMenuKeyboard.test.js b/test/e2e/core/layerContextMenuKeyboard.test.js index 79897ec97..f1ac4b9b5 100644 --- a/test/e2e/core/layerContextMenuKeyboard.test.js +++ b/test/e2e/core/layerContextMenuKeyboard.test.js @@ -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 diff --git a/test/e2e/core/mapFeature.test.js b/test/e2e/core/mapFeature.test.js index 80295da17..e7a71cc58 100644 --- a/test/e2e/core/mapFeature.test.js +++ b/test/e2e/core/mapFeature.test.js @@ -305,6 +305,7 @@ test.describe('MapFeature Events', () => { }); test('Custom Click event - stopPropagation', async () => { + await page.waitForTimeout(1000); // Click on polygon await page .locator(