stabilize hydrated login actions

This commit is contained in:
ajnart committed 2026-08-03 18:37:05 +02:00
1 parent 62f5c1cbc3
commit 1642a862d9
3 files changed
+10 -8

No files matched your search

+1 -1
View File
@@ -44,7 +44,7 @@ describe("Assistant management", () => {
await page.getByLabel("Username").fill(adminCredentials.username);
await page.locator("#password").fill(adminCredentials.password);
await page.getByRole("button", { name: "Login" }).click();
await page.waitForURL(baseUrl, { timeout: 15_000 });
await expect(page).not.toHaveURL(/\/auth\/login/, { timeout: 30_000 });
await page.goto(`${baseUrl}/manage/assistant`);
await expect(page.getByRole("heading", { name: "Assistant" })).toBeVisible();
+1 -1
View File
@@ -46,7 +46,7 @@ describe("Custom JSX custom widgets", () => {
await page.getByLabel("Username").fill(adminCredentials.username);
await page.locator("#password").fill(adminCredentials.password);
await page.locator("css=button[type='submit']").click();
await page.waitForURL(baseUrl, { timeout: 15_000 });
await expect(page).not.toHaveURL(/\/auth\/login/, { timeout: 30_000 });
await page.goto(`${baseUrl}/manage/custom-widgets/new`);
await page.waitForURL("**/manage/custom-widgets/new", { timeout: 15_000 });