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:
kikootwo
2026-03-04 19:41:44 -05:00
parent ca02b8b6e7
commit d1ea65a41a
3 changed files with 13 additions and 44 deletions
+1 -1
View File
@@ -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 () => {