This repository has been archived on 2026-05-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
app/apps/web
Barkley Trimsworth 7d1ff1f895 fix(tests): prevent staff redirect loop and fix async test handling
- Add guard to staff redirect to skip redirect if already on /admin route
  This prevents <Navigate to="/admin"> from firing when already at /admin,
  which was causing the admin layout to not render in tests
- Wrap renderApp() in act() to properly flush vi.fn() mock state updates
- Use queryAllByText instead of getByText for nav link checks to handle
  duplicate text elements (nav links vs page headings)

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-30 20:11:09 +00:00
..
2026-03-17 18:50:07 +00:00
2026-03-17 18:50:07 +00:00