mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Upgrade @testing-library/user-event to v14 (#47898)
* Update dependency @testing-library/user-event to v14
* everything is async...
* everything is async pt.2
* Fix cascader tests
* hack the yarn.lock file to remove the old version of @testing-library/dom
* some more fixes!
* MOAR FIXES
* more fixes
* remove a bunch of places where we're wrapping in act()
* down to 7 failing tests...
* Fix arrow tests
* Fix rest of NavBarItem tests
* Fix last tests
* Use {Enter} instead of {enter}
* Revert "Use {Enter} instead of {enter}"
This reverts commit e72453bb52.
* remove some unused act imports
* Fix LibraryPanelsSearch tests
* more stable test
* More consistent test...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
This commit is contained in:
@@ -28,9 +28,9 @@ describe('PanelNotSupported', () => {
|
||||
});
|
||||
|
||||
describe('when the back to queries button is clicked', () => {
|
||||
it('then correct action should be dispatched', () => {
|
||||
it('then correct action should be dispatched', async () => {
|
||||
setupTestContext({});
|
||||
userEvent.click(screen.getByRole('button', { name: /go back to queries/i }));
|
||||
await userEvent.click(screen.getByRole('button', { name: /go back to queries/i }));
|
||||
expect(locationService.getSearchObject().tab).toBe(PanelEditorTabId.Query);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user