Summary
The in-test auth store helper in auth-flow.test.tsx writes auth_token and accepts an injected user object. The actual shipped auth flow uses accessToken/refreshToken, derives the user from the JWT, and sets the cm_access_token cookie. This mismatch means the tests pass even when the real auth contract is broken.
Affected file
src/UILayer/web/src/__tests__/e2e/auth-flow.test.tsx — line 39
Required fix
Update the test helper to use the same field names and structure as the real useAuthStore (accessToken, refreshToken, cookie logic) so the tests fail when the production auth contract changes.
References