fix flaky test
This commit is contained in:
parent
409e0df9a6
commit
5908660e56
3 changed files with 5 additions and 36 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue