Skip to content

Commit

Permalink
web: add delay to avoid flakiness in tag test
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodrr committed Sep 8, 2022
1 parent 4c1070a commit 1af273c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/web/__e2e__/tags.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 1af273c

Please sign in to comment.