Skip to content

Commit 5fdbec5

Browse files
fix: Flaky E2E test for Progress steps (#709)
# Motivation A new step was included in the Progress step component showcase, but that means that we should wait slightly more for the animation to finish before taking the snapshot, to be sure and avoid flakiness.
1 parent 0ed8d1c commit 5fdbec5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

e2e/progress-steps.e2e.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ test("Second step is in progress", async ({ page }) => {
1414
const showcase = page.getByTestId("showcase");
1515
await showcase.scrollIntoViewIfNeeded();
1616

17-
// Hide spinner to avoid test failing if not exact same timing
17+
// Hide spinner to avoid test failing if not the exact same timing
1818
await page.evaluate(() =>
1919
document.querySelector(".spinner")?.setAttribute("style", "opacity: 0;"),
2020
);
@@ -32,7 +32,7 @@ test("All steps are completed", async ({ page }) => {
3232
await toggle.click();
3333

3434
// Wait for animation
35-
await page.waitForTimeout(2500);
35+
await page.waitForTimeout(3500);
3636

3737
await expect(page).toHaveScreenshot();
3838
});

0 commit comments

Comments
 (0)