From cc74caf9d9b66711f4aab793966c1f8a5663e1b9 Mon Sep 17 00:00:00 2001 From: Adam Mathes Date: Sun, 15 Feb 2026 14:22:31 -0800 Subject: Switch to HashRouter to fix page reload issues (NK-hy162w) --- frontend/src/App.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'frontend/src/App.test.tsx') diff --git a/frontend/src/App.test.tsx b/frontend/src/App.test.tsx index 1ef9763..27b9da2 100644 --- a/frontend/src/App.test.tsx +++ b/frontend/src/App.test.tsx @@ -16,7 +16,7 @@ describe('App', () => { } as Response); window.history.pushState({}, 'Test page', '/v2/login'); render(); - expect(screen.getByRole('button', { name: /login/i })).toBeInTheDocument(); + expect(await screen.findByRole('button', { name: /login/i })).toBeInTheDocument(); }); it('renders dashboard when authenticated', async () => { @@ -54,7 +54,7 @@ describe('App', () => { '/api/logout', expect.objectContaining({ method: 'POST' }) ); - expect(window.location.href).toBe('/v2/login'); + expect(window.location.href).toBe('/v2/#/login'); }); }); }); -- cgit v1.2.3