mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: wait for component to render properly to prevent act warning (#80016)
wait for component to render properly to prevent act warning
This commit is contained in:
parent
70a25eaf2c
commit
5154a9d99c
@ -52,6 +52,7 @@ describe('MegaMenu', () => {
|
|||||||
it('should filter out profile', async () => {
|
it('should filter out profile', async () => {
|
||||||
setup();
|
setup();
|
||||||
|
|
||||||
|
expect(await screen.findByTestId(selectors.components.NavMenu.Menu)).toBeInTheDocument();
|
||||||
expect(screen.queryByLabelText('Profile')).not.toBeInTheDocument();
|
expect(screen.queryByLabelText('Profile')).not.toBeInTheDocument();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user