mirror of
https://github.com/kikootwo/ReadMeABook.git
synced 2026-06-02 20:30:10 +00:00
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:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user