From 65da74858b2d8586e9faecf3fbde8d8955fb8173 Mon Sep 17 00:00:00 2001 From: Thomas Camlong Date: Sun, 2 Aug 2026 19:14:40 +0200 Subject: [PATCH] test: stabilize board grid authentication --- e2e/board-grid.spec.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/e2e/board-grid.spec.ts b/e2e/board-grid.spec.ts index eb9072209..6686d8484 100644 --- a/e2e/board-grid.spec.ts +++ b/e2e/board-grid.spec.ts @@ -1195,8 +1195,10 @@ const signInAsync = async (page: Page, baseUrl: string, callbackPath: string) => await page.goto(loginUrl.href); await page.getByLabel("Username").fill(adminCredentials.username); await page.getByRole("textbox", { name: "Password", exact: true }).fill(adminCredentials.password); - await page.locator("button[type='submit']").click(); - await page.waitForURL(`${baseUrl}${callbackPath}`, { timeout: 15_000 }); + await Promise.all([ + page.waitForURL(`${baseUrl}${callbackPath}`, { timeout: 30_000, waitUntil: "commit" }), + page.locator("button[type='submit']").click(), + ]); }; const prepareScreenshotDirectoryAsync = async () => {