Skip to content

Commit

Permalink
refactor: updated/resolved failing test post upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
BilalQamar95 committed Apr 16, 2024
1 parent 42698d2 commit 528a997
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/widgets/Xpert.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,10 @@ 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' }));

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

0 comments on commit 528a997

Please sign in to comment.