From ca0188eca1d24d794bfd7810b0786fde64ffe3dd Mon Sep 17 00:00:00 2001 From: cliffhall Date: Fri, 23 Jan 2026 10:43:10 -0500 Subject: [PATCH] In App.samplingNavigation.test.tsx, - replaced test for Reject button with the one used in the regular sampling test, which gets the button by role. This test appeared to be failing because formatting puts the name between the button elements with some whitespace. The way to look is with a regex --- client/src/__tests__/App.samplingNavigation.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/__tests__/App.samplingNavigation.test.tsx b/client/src/__tests__/App.samplingNavigation.test.tsx index a82e13502..70a42a92f 100644 --- a/client/src/__tests__/App.samplingNavigation.test.tsx +++ b/client/src/__tests__/App.samplingNavigation.test.tsx @@ -229,7 +229,7 @@ describe("App - Sampling auto-navigation", () => { expect(screen.getByTestId("sampling-request")).toBeTruthy(); }); - fireEvent.click(screen.getByText("Reject")); + fireEvent.click(screen.getByRole("button", { name: /Reject/i })); await waitFor(() => { expect(reject).toHaveBeenCalled();