test: stabilize board grid authentication

This commit is contained in:
Thomas Camlong authored and ajnart committed 2026-08-13 19:53:42 +02:00
1 parent f5ac662aeb
commit 279aeb3269
1 file changed
+4 -2
+4 -2
View File
@@ -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 () => {