aboutsummaryrefslogtreecommitdiffstats
path: root/frontend/src/App.test.tsx
diff options
context:
space:
mode:
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');
});
});
});