From 8ebb0833c4049813a6ba171fee531ef0aefee858 Mon Sep 17 00:00:00 2001 From: Eduardo Date: Wed, 3 Jul 2024 17:27:00 -0400 Subject: [PATCH] improve e2e test flakiness --- end-to-end-tests/pageObjects/extensionConsole/modsPage.ts | 2 +- end-to-end-tests/tests/regressions/welcomeStarterBricks.spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/end-to-end-tests/pageObjects/extensionConsole/modsPage.ts b/end-to-end-tests/pageObjects/extensionConsole/modsPage.ts index 2e51fd7e73..a721817b2c 100644 --- a/end-to-end-tests/pageObjects/extensionConsole/modsPage.ts +++ b/end-to-end-tests/pageObjects/extensionConsole/modsPage.ts @@ -40,7 +40,7 @@ export class ModsPage extends BasePageObject { .context() .waitForEvent("requestfinished", { predicate: (request) => request.url().includes("/api/registry/bricks/"), - timeout: 10_000, + timeout: 15_000, }); await this.page.goto(this.extensionConsoleUrl); await expect(this.getByText("Extension Console")).toBeVisible(); diff --git a/end-to-end-tests/tests/regressions/welcomeStarterBricks.spec.ts b/end-to-end-tests/tests/regressions/welcomeStarterBricks.spec.ts index 1a8b432750..45b9f3badd 100644 --- a/end-to-end-tests/tests/regressions/welcomeStarterBricks.spec.ts +++ b/end-to-end-tests/tests/regressions/welcomeStarterBricks.spec.ts @@ -36,7 +36,7 @@ test("#8740: can view the starter mods on the pixiebrix.com/welcome page", async const sideBarPage = await getSidebarPage(page, extensionId); await expect( sideBarPage.getByRole("heading", { name: "Announcements" }), - ).toBeVisible(); + ).toBeVisible({ timeout: 8000 }); await expect( sideBarPage.getByRole("heading", { name: "Decision Tree" }), ).toBeVisible();