From a3bf9ef4ee4a5a6eafe59bdc3d088cf4317730fd Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Wed, 23 Sep 2026 22:33:04 +0000 Subject: [PATCH] fix(web): retry sign-up navigation in Playwright helpers Late-suite specs can miss the sign-up heading when Vite is still warming on self-hosted runners. Retry goto until the form renders instead of failing once at the default timeout. Co-authored-by: cynarAI --- apps/web/e2e/helpers.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/web/e2e/helpers.ts b/apps/web/e2e/helpers.ts index 2034b43..6352ff2 100644 --- a/apps/web/e2e/helpers.ts +++ b/apps/web/e2e/helpers.ts @@ -87,8 +87,12 @@ export async function signup( name: string, testInfo?: TestInfo, ) { - await page.goto("/sign-up"); - await expect(page.getByRole("heading", { name: "Create your EvOo" })).toBeVisible(); + await expect(async () => { + await page.goto("/sign-up", { waitUntil: "domcontentloaded" }); + await expect(page.getByRole("heading", { name: "Create your EvOo" })).toBeVisible({ + timeout: 5_000, + }); + }).toPass({ timeout: 45_000 }); if (testInfo) await captureScreenshot(page, testInfo, "01-sign-up"); await page.getByPlaceholder("Your name").fill(name); await page.getByPlaceholder("Your email address").fill(email);