From 1af273c9d35e6a57ffa3894838a5bba915f32569 Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Thu, 8 Sep 2022 23:57:03 +0500 Subject: [PATCH] web: add delay to avoid flakiness in tag test --- apps/web/__e2e__/tags.test.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/web/__e2e__/tags.test.js b/apps/web/__e2e__/tags.test.js index 03aa668d62..d76f31d981 100644 --- a/apps/web/__e2e__/tags.test.js +++ b/apps/web/__e2e__/tags.test.js @@ -208,6 +208,8 @@ test("delete a shortcut of a tag", async ({ page }) => { await clickMenuItem("shortcut"); }); + await page.waitForTimeout(1000); + expect( await page.isVisible(new Menu("navitem").item("helloworld").build()) ).toBe(true); @@ -219,6 +221,8 @@ test("delete a shortcut of a tag", async ({ page }) => { } ); + await page.waitForTimeout(1000); + expect( await page.isVisible(new Menu("navitem").item("helloworld").build()) ).toBe(false);