try to address flaky SearchModal test

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2023-10-03 14:51:39 +02:00
parent 3b500cdcd1
commit aba6edda91
@@ -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');