Skip to content

Commit

Permalink
refactor: resolved waitFor timeout issue
Browse files Browse the repository at this point in the history
  • Loading branch information
BilalQamar95 committed May 15, 2024
1 parent 53e8cfa commit 8946648
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widgets/Xpert.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ test('loading message appears in the sidebar while the response loads', async ()
waitFor(async () => {
await screen.findByText('Xpert is thinking');
await screen.findByText(responseMessage.content);
}, { timeout: 3000 });
}, { timeout: 2000 });
});
test('response text appears as message in the sidebar', async () => {
const user = userEvent.setup();
Expand Down

0 comments on commit 8946648

Please sign in to comment.