Skip to content

test(dashboard): add auth guard tests for all 4 token×merchant states - #280

Merged
martinzhames merged 2 commits into
dupdab:mainfrom
CodedBay:test/dashboard-layout-auth-guards
Aug 29, 2026
Merged

test(dashboard): add auth guard tests for all 4 token×merchant states#280
martinzhames merged 2 commits into
dupdab:mainfrom
CodedBay:test/dashboard-layout-auth-guards

Conversation

@CodedBay

Copy link
Copy Markdown
Contributor
  • Install Jest + Testing Library infrastructure
  • Tests: token+merchant renders dashboard shell; token only returns null (blank, no redirect); no-token redirects to /auth/login; neither redirects to /auth/login

closes #138

- Install Jest + Testing Library infrastructure
- Tests: token+merchant renders dashboard shell; token only returns null
  (blank, no redirect); no-token redirects to /auth/login; neither
  redirects to /auth/login
@drips-wave

drips-wave Bot commented Aug 29, 2026

Copy link
Copy Markdown

@CodedBay 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

@martinzhames
martinzhames merged commit b0dc758 into dupdab:main Aug 29, 2026
1 check failed
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.

Add tests for DashboardLayout's auth-guard redirect logic

2 participants