You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#119 added unit tests for the refresher and five end-to-end tests of refresh failures and logout (e2e/session.spec.ts). Two gaps of finding L4 of the 0.1.0 pre-release review are left:
Token expiry in the browser: the e2e mock (e2e/mock/server.ts) always issues tokens with expires_in: 3600, so no e2e test lets the refresh timer fire on its own close to expiry; the tests trigger refreshes through the mock's failure modes instead.
The "user" tier: the mock gives every user the compute group, so the view of a logged-in user without compute access (ComputeGate with the access request link from COMPUTE_ACCESS_REQUEST_URL) is never tested end to end.
Unit coverage counts only src/lib, src/app/api and src/app/auth/api (vitest.config.mts); components and hooks are covered only through e2e tests, which is why these gaps matter.
Expected
The mock can issue short-lived tokens (e.g. expires_in: 330, set per test like /mock/refresh), and an e2e test shows the page refreshing on its own before expiry, without a reload or a redirect.
The mock can log in a user without the compute group, and an e2e test checks the "user" tier: no task or workflow submission, the access request link shown.
No product code changes; bun run test:e2e passes on Chromium and Firefox, and the tests stay fast (no waits of minutes: fake the clock with Playwright's page.clock if needed).
docs/development/index.md mentions the new mock options next to the existing ones.
Activity