aboutsummaryrefslogtreecommitdiffstats
path: root/frontend/src/App.test.tsx
diff options
context:
space:
mode:
authorAdam Mathes <adam@adammathes.com>2026-02-15 14:22:31 -0800
committerAdam Mathes <adam@adammathes.com>2026-02-15 14:22:31 -0800
commitcc74caf9d9b66711f4aab793966c1f8a5663e1b9 (patch)
tree8602af15cd7e36f1ce1f8a5c9f6753b7f108adbe /frontend/src/App.test.tsx
parent9f64d3a18eb92c4845dac38265acecef2931490b (diff)
downloadneko-cc74caf9d9b66711f4aab793966c1f8a5663e1b9.tar.gz
neko-cc74caf9d9b66711f4aab793966c1f8a5663e1b9.tar.bz2
neko-cc74caf9d9b66711f4aab793966c1f8a5663e1b9.zip
Switch to HashRouter to fix page reload issues (NK-hy162w)
Diffstat (limited to 'frontend/src/App.test.tsx')
-rw-r--r--frontend/src/App.test.tsx4
1 files changed, 2 insertions, 2 deletions
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(<App />);
- 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');
});
});
});