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
The rewrite has no tests. The login, token and registry code (#43, #44, #40) is security-relevant and easy to break unnoticed.
How?
Unit tests (e.g. Vitest) for the server routes and helpers: registry filtering (verified, type, version, environment, https), the PKCE/state/nonce handling and ID token validation, token renewal and the one-retry-after-401 rule, and tag stripping for re-runs.
The tests landed on dev with #63: unit tests with Vitest (100% coverage threshold for src/lib/, src/app/api/ and src/app/auth/api/) and end-to-end tests with Playwright (anonymous browsing, login, a forged callback, a workflow submission with the user's token, logout) against mock OIDC, registry and WES services. The PR said "Closes #51", but it went into staging (now dev) before it was the default branch, so GitHub didn't close this issue.
Units that didn't exist yet (PKCE, nonce, ID token validation, the TES journey) come with their features (#43, #44, #41); the coverage threshold makes them bring their tests.
One gap is left: #60 replaced checks.yml with ci.yml and dropped the jobs Test and End-to-end tests, so CI doesn't run the tests at the moment. #75 (for #69) restores them. Closing this one as done; it ships with v0.1.0.
Activity
uniqueg commentedon Nov 14, 2026
The tests landed on
devwith #63: unit tests with Vitest (100% coverage threshold forsrc/lib/,src/app/api/andsrc/app/auth/api/) and end-to-end tests with Playwright (anonymous browsing, login, a forged callback, a workflow submission with the user's token, logout) against mock OIDC, registry and WES services. The PR said "Closes #51", but it went intostaging(nowdev) before it was the default branch, so GitHub didn't close this issue.Units that didn't exist yet (PKCE,
nonce, ID token validation, the TES journey) come with their features (#43, #44, #41); the coverage threshold makes them bring their tests.One gap is left: #60 replaced
checks.ymlwithci.ymland dropped the jobsTestandEnd-to-end tests, so CI doesn't run the tests at the moment. #75 (for #69) restores them. Closing this one as done; it ships with v0.1.0.