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 28, 2024
1 parent eaafa0d commit 8e1a476
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 @@ -177,7 +177,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: 2000 });
});
test('response text appears as message in the sidebar', async () => {
const user = userEvent.setup();
Expand Down

0 comments on commit 8e1a476

Please sign in to comment.