mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
fix(ci): increase e2e login wait timeouts and add firefox support
- Update .github/workflows/ci.yml to install Firefox for e2e-headless tests. - Update tests/e2e/login-flows.spec.ts to increase waitForFunction timeout to 15s when waiting for logout state, fixing flaky race conditions. - Update js/adminListStore.js to robustly await nostrClient initialization to prevent "pool not initialized" errors during startup. Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
ca7ab46dac
commit
dfefef840e
1 file changed
+2
-2
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user