Skip to content

fix(tests): E2E auth-flow test helper uses stale auth contract (auth_token vs accessToken/refreshToken) #403

@github-actions

Description

@github-actions

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions