fix flaky test

This commit is contained in:
counterweight 2025-12-19 10:15:14 +01:00
parent 409e0df9a6
commit 5908660e56
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
3 changed files with 5 additions and 36 deletions

View file

@ -276,6 +276,9 @@ test.describe("Session Persistence", () => {
await expect(page).toHaveURL("/");
await page.click("text=Sign out");
// Wait for navigation to complete - ensures the logout request finished
// and the Set-Cookie header was processed by the browser
await expect(page).toHaveURL("/login");
const cookies = await page.context().cookies();
const authCookie = cookies.find((c) => c.name === "auth_token");