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
@@ -300,7 +300,7 @@ export default function BookDatePage() {
Try Again
</button>
<button
onClick={() => router.push('/settings')}
onClick={() => router.push('/admin/settings')}
className="px-6 py-2 border border-gray-300 dark:border-gray-600 text-gray-700 dark:text-gray-300 rounded-lg hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors"
>
Go to Settings