mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
fix(ci): fix login race condition and add safety checks for adminListStore
- Add explicit wait for logged-out state in login-flows e2e test to prevent races - Add defensive checks for nostrClient initialization in adminListStore to prevent startup errors - Ensure Firefox is installed in e2e-headless CI job Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
7a8c738a09
commit
ca7ab46dac
1 file changed
+5
@@ -98,6 +98,11 @@ test.describe("Login and authentication flows", () => {
|
||||
(window as any).__bitvidTest__.logout();
|
||||
});
|
||||
|
||||
// Wait for state to settle
|
||||
await page.waitForFunction(() => {
|
||||
return (window as any).__bitvidTest__.getAppState().isLoggedIn === false;
|
||||
});
|
||||
|
||||
const loggedOut = await page.evaluate(() => {
|
||||
return (window as any).__bitvidTest__.getAppState();
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user