fix board E2E login race

This commit is contained in:
Thomas Camlong committed 2026-08-03 13:09:56 +02:00
1 parent 3c99c75ad7
commit 294217fcba
1 file changed
+2 -1
+2 -1
View File
@@ -327,8 +327,9 @@ const openBoardAsync = async (
await page.goto(`${baseUrl}/auth/login`);
await page.getByLabel("Username").fill(credentials.username);
await page.locator("#password").fill(credentials.password);
const loginRedirect = page.waitForURL(baseUrl, { timeout: 15_000, waitUntil: "commit" });
await page.locator("css=button[type='submit']").click();
await page.waitForURL(baseUrl, { timeout: 15_000 });
await loginRedirect;
await page.goto(`${baseUrl}/boards/${boardName}`);
await expect(page.locator(".grid-stack-item[data-kind='clock'] .clock-wrapper").first()).toBeVisible({
timeout: 15_000,