Merge pull request #20336 from backstage/freben/tick

try to address flaky SearchModal test
This commit is contained in:
Fredrik Adelöw
2023-10-05 16:23:12 +02:00
committed by GitHub
@@ -205,6 +205,7 @@ describe('SearchModal', () => {
const input = screen.getByLabelText('Search');
await userEvent.clear(input);
await 'a tick';
await userEvent.type(input, 'new term{enter}');
expect(navigate).toHaveBeenCalledWith('/search?query=new term');