Skip to content

[codex] Add auth page component coverage#277

Open
barry01-hash wants to merge 1 commit into
Nexacore-Org:v2from
barry01-hash:codex/auth-page-component-tests
Open

[codex] Add auth page component coverage#277
barry01-hash wants to merge 1 commit into
Nexacore-Org:v2from
barry01-hash:codex/auth-page-component-tests

Conversation

@barry01-hash

@barry01-hash barry01-hash commented Jun 25, 2026

Copy link
Copy Markdown

Closes #238

Summary

  • replace the placeholder v2 auth pages with working login, OTP verification, signup, forgot-password, and reset-password flows
  • add Vitest, React Testing Library, and MSW component-test infrastructure
  • cover validation, API payloads, inline API errors, loading states, auth-store updates, redirects, resend behavior, and privacy-safe password recovery
  • mock Next.js navigation and browser storage so tests perform no real navigation or storage access

Why

The auth routes are high-traffic entry points and previously had no component-level regression coverage on v2. The pages were still placeholders, so the requested behaviors also required implementing the corresponding forms and API integration.

Impact

Users now have functional, accessible auth forms on v2. Future changes to authentication behavior are protected by 25 focused component tests, with every request intercepted through MSW.

Validation

  • npm run test - 5 files, 25 tests passed
  • npm run lint - passed
  • npm run build - passed

@vercel

vercel Bot commented Jun 25, 2026

Copy link
Copy Markdown

@barry01-hash is attempting to deploy a commit to the Emmanuel Dorcas' projects Team on Vercel.

A member of the Team first needs to authorize it.

@barry01-hash barry01-hash marked this pull request as ready for review June 25, 2026 11:58
@drips-wave

drips-wave Bot commented Jun 25, 2026

Copy link
Copy Markdown

@barry01-hash Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@portableDD

Copy link
Copy Markdown
Contributor

@barry01-hash resolve conflicts

@portableDD

Copy link
Copy Markdown
Contributor

This PR has merge conflicts. Please rebase on latest v2 and fix the conflicts.

2 similar comments
@portableDD

Copy link
Copy Markdown
Contributor

This PR has merge conflicts. Please rebase on latest v2 and fix the conflicts.

@portableDD

Copy link
Copy Markdown
Contributor

This PR has merge conflicts. Please rebase on latest v2 and fix the conflicts.

@barry01-hash

Copy link
Copy Markdown
Author

Please merge

@portableDD

Copy link
Copy Markdown
Contributor

This PR has merge conflicts. Please rebase on latest v2 and fix the conflicts.

@portableDD

Copy link
Copy Markdown
Contributor

This PR has extensive merge conflicts with v2. Please rebase your branch on the latest v2 and resolve the conflicts so it can be merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants