try to fix ci
All checks were successful
CI/CD Pipeline / test (push) Successful in 43m53s
CI/CD Pipeline / deploy-staging (push) Has been skipped
CI/CD Pipeline / deploy-main (push) Has been skipped

This commit is contained in:
2025-11-20 18:43:06 +01:00
parent ee7c7bc0d6
commit 900cb2a24d
2 changed files with 6 additions and 1 deletions

View File

@@ -117,6 +117,7 @@ test.describe("cox can edit trips", () => {
// Someone registers... // Someone registers...
await page.goto("/auth/logout"); await page.goto("/auth/logout");
await page.waitForURL("/auth");
await login(page, "rower", "rower"); await login(page, "rower", "rower");
await page.goto("/planned"); await page.goto("/planned");
@@ -124,6 +125,7 @@ test.describe("cox can edit trips", () => {
// Login as cox again // Login as cox again
await page.goto("/auth/logout"); await page.goto("/auth/logout");
await page.waitForURL("/auth");
await login(page, "cox", "cox"); await login(page, "cox", "cox");
await page.goto("/planned"); await page.goto("/planned");

View File

@@ -12,7 +12,10 @@ export async function login(page: Page, username: string, password: string): Pro
// Clear cookies to ensure clean state // Clear cookies to ensure clean state
await page.context().clearCookies(); await page.context().clearCookies();
await page.goto("/auth"); // Navigate to auth page and wait for it to fully load
await page.goto("/auth", { waitUntil: 'load' });
await page.waitForLoadState('networkidle');
await page.getByPlaceholder("Name").click(); await page.getByPlaceholder("Name").click();
await page.getByPlaceholder("Name").fill(username); await page.getByPlaceholder("Name").fill(username);
await page.getByPlaceholder("Passwort").click(); await page.getByPlaceholder("Passwort").click();