From d1ea65a41a924b3e805e48b58cfaecf3ea5c1195 Mon Sep 17 00:00:00 2001 From: kikootwo Date: Wed, 4 Mar 2026 19:41:44 -0500 Subject: [PATCH] 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. --- src/app/bookdate/page.tsx | 2 +- tests/app/bookdate.page.test.tsx | 2 +- .../components/requests/RequestCard.test.tsx | 53 ++++--------------- 3 files changed, 13 insertions(+), 44 deletions(-) diff --git a/src/app/bookdate/page.tsx b/src/app/bookdate/page.tsx index 7ffae39..f8ce055 100644 --- a/src/app/bookdate/page.tsx +++ b/src/app/bookdate/page.tsx @@ -300,7 +300,7 @@ export default function BookDatePage() { Try Again