From 497849f427915825c115e9d51b4da8b3ab8bb809 Mon Sep 17 00:00:00 2001 From: kikootwo Date: Thu, 22 Jan 2026 16:02:51 -0500 Subject: [PATCH] Fix test to use regex match for error message Updated the test assertion to use a regex match for 'Bad credentials' to allow for partial or dynamic error messages. --- tests/app/setup/steps/DownloadClientStep.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/app/setup/steps/DownloadClientStep.test.tsx b/tests/app/setup/steps/DownloadClientStep.test.tsx index 7ad710a..1829a2e 100644 --- a/tests/app/setup/steps/DownloadClientStep.test.tsx +++ b/tests/app/setup/steps/DownloadClientStep.test.tsx @@ -122,7 +122,7 @@ describe('DownloadClientStep', () => { expect(fetchMock).toHaveBeenCalledWith('/api/setup/test-download-client', expect.any(Object)); }); - expect(screen.getByText('Bad credentials')).toBeInTheDocument(); + expect(screen.getByText(/Bad credentials/)).toBeInTheDocument(); }); it('disables test connection when SABnzbd fields are incomplete', async () => {