mirror of
https://github.com/kikootwo/ReadMeABook.git
synced 2026-06-02 20:30:10 +00:00
Use /admin/settings route and update RequestCard tests
Change the settings navigation in BookDatePage to push to /admin/settings and update the corresponding test to expect the new route. Simplify RequestCard tests by removing manual/interactive search mocks and modal, remove interactiveSearch permission from the mocked AuthContext, and adjust tests to only assert cancel behavior; add a new test ensuring Manual/Interactive Search buttons are not rendered. Misc: clean up related mock resets and removed a failing manual-search failure test.
This commit is contained in:
@@ -216,7 +216,7 @@ describe('BookDatePage', () => {
|
||||
await screen.findByText(/Could not load recommendations/);
|
||||
fireEvent.click(screen.getByRole('button', { name: 'Go to Settings' }));
|
||||
|
||||
expect(routerMock.push).toHaveBeenCalledWith('/settings');
|
||||
expect(routerMock.push).toHaveBeenCalledWith('/admin/settings');
|
||||
});
|
||||
|
||||
it('shows empty state and triggers recommendation generation', async () => {
|
||||
|
||||
Reference in New Issue
Block a user