test(ui): repair current main test baseline (#3191)

This commit is contained in:
Alan Shum
2026-08-28 15:44:40 +03:00
committed by GitHub
parent 5faa1a6531
commit 73e21d0050
3 changed files with 28 additions and 3 deletions
@@ -303,6 +303,19 @@ mock.module('@/lib/passkeys', () => ({
registerCurrentDevicePasskey: mock(() => Promise.resolve(null)),
}));
const authSessionStore = {
state: 'ok' as const,
markAuthenticated: mock(() => undefined),
};
mock.module('@/lib/runtime-auth-expiry', () => ({
installAuthSessionFocusWatch: mock(() => undefined),
useAuthSessionStore: Object.assign(
(selector: (store: typeof authSessionStore) => unknown) => selector(authSessionStore),
{ getState: () => authSessionStore },
),
}));
const { SessionAuthGate } = await import('./SessionAuthGate');
const flushEffects = async () => {