Skip to content

Commit

Permalink
fix flaky expectation
Browse files Browse the repository at this point in the history
  • Loading branch information
fungairino committed Jul 4, 2024
1 parent 8ebb083 commit 3053e30
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@ test("#8740: can view the starter mods on the pixiebrix.com/welcome page", async
await modActivationPage.clickActivateAndWaitForModsPageRedirect();

await page.goto("https://pixiebrix.com/welcome");
// eslint-disable-next-line playwright/no-networkidle -- Ensure page and content script is done loading
await page.waitForLoadState("networkidle");
await runModViaQuickBar(page, "Open Sidebar");

const sideBarPage = await getSidebarPage(page, extensionId);
await expect(
sideBarPage.getByRole("heading", { name: "Announcements" }),
).toBeVisible({ timeout: 8000 });
).toBeVisible();
await expect(
sideBarPage.getByRole("heading", { name: "Decision Tree" }),
).toBeVisible();
Expand Down

0 comments on commit 3053e30

Please sign in to comment.