diff --git a/tests/e2e/login-flows.spec.ts b/tests/e2e/login-flows.spec.ts index 94460aeb..9e491b86 100644 --- a/tests/e2e/login-flows.spec.ts +++ b/tests/e2e/login-flows.spec.ts @@ -98,10 +98,10 @@ test.describe("Login and authentication flows", () => { (window as any).__bitvidTest__.logout(); }); - // Wait for state to settle + // Wait for state to settle with a longer timeout await page.waitForFunction(() => { return (window as any).__bitvidTest__.getAppState().isLoggedIn === false; - }); + }, { timeout: 15000 }); const loggedOut = await page.evaluate(() => { return (window as any).__bitvidTest__.getAppState();