Skip to content

Commit

Permalink
Merge pull request #7714 from marmelab/fix-AutocompleteInput-tests
Browse files Browse the repository at this point in the history
fix AutocompleteInput tests
  • Loading branch information
djhi authored May 19, 2022
2 parents 259ad33 + a758be2 commit d06a297
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -928,9 +928,9 @@ describe('<AutocompleteInput />', () => {
// Give time for the (previously thrown) error to happen
await new Promise(resolve => setTimeout(resolve, 1000));
await waitFor(() => {
screen.getByText('resources.tags.fields.tags');
screen.getByText('resources.undefined.fields.tags');
});
fireEvent.click(screen.getByText('resources.tags.fields.tags'));
fireEvent.click(screen.getByText('resources.undefined.fields.tags'));
await waitFor(() => {
screen.getByText('No options');
});
Expand Down

0 comments on commit d06a297

Please sign in to comment.