Update dependency @testing-library/user-event to v14.1.1 (#47008)

* Update dependency @testing-library/user-event to v14.1.1

* make this test more consistent

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
This commit is contained in:
renovate[bot]
2022-04-21 13:44:36 +01:00
committed by GitHub
parent a0553de8dd
commit 03cf38e659
6 changed files with 21 additions and 20 deletions

View File

@@ -95,14 +95,15 @@ describe('LibraryPanelsSearch', () => {
await userEvent.type(screen.getByPlaceholderText(/search by name/i), 'a');
await waitFor(() => expect(getLibraryPanelsSpy).toHaveBeenCalled());
expect(getLibraryPanelsSpy).toHaveBeenCalledTimes(1);
expect(getLibraryPanelsSpy).toHaveBeenCalledWith({
searchString: 'a',
folderFilter: [],
page: 0,
typeFilter: [],
perPage: 40,
});
await waitFor(() =>
expect(getLibraryPanelsSpy).toHaveBeenCalledWith({
searchString: 'a',
folderFilter: [],
page: 0,
typeFilter: [],
perPage: 40,
})
);
});
});
});