7d1ff1f895
- 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>