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.
This commit is contained in:
kikootwo
2026-01-22 16:02:51 -05:00
parent 31bca0052f
commit 497849f427
@@ -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 () => {