more-robust-ui-tests #1157
@@ -117,6 +117,7 @@ test.describe("cox can edit trips", () => {
|
||||
|
||||
// Someone registers...
|
||||
await page.goto("/auth/logout");
|
||||
await page.waitForURL("/auth");
|
||||
await login(page, "rower", "rower");
|
||||
|
||||
await page.goto("/planned");
|
||||
@@ -124,6 +125,7 @@ test.describe("cox can edit trips", () => {
|
||||
|
||||
// Login as cox again
|
||||
await page.goto("/auth/logout");
|
||||
await page.waitForURL("/auth");
|
||||
await login(page, "cox", "cox");
|
||||
|
||||
await page.goto("/planned");
|
||||
|
||||
@@ -12,7 +12,10 @@ export async function login(page: Page, username: string, password: string): Pro
|
||||
// Clear cookies to ensure clean state
|
||||
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").fill(username);
|
||||
await page.getByPlaceholder("Passwort").click();
|
||||
|
||||
Reference in New Issue
Block a user