Skip to content

Commit

Permalink
refactor: updated xpert test
Browse files Browse the repository at this point in the history
  • Loading branch information
BilalQamar95 committed May 15, 2024
1 parent 5618dbc commit 6fcc5cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/widgets/Xpert.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ test('loading message appears in the sidebar while the response loads', async ()
// API skipped straight to rendering the response message.
await fireEvent.click(screen.getByRole('button', { name: 'submit' }));

waitFor(async () => {
await screen.findByText('Xpert is thinking');
await screen.findByText(responseMessage.content);
waitFor(() => {
screen.getByText('Xpert is thinking');
screen.getByText(responseMessage.content);
});
});
test('response text appears as message in the sidebar', async () => {
Expand Down

0 comments on commit 6fcc5cb

Please sign in to comment.