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:
@@ -52,6 +52,7 @@ describe('MegaMenu', () => {
|
||||
it('should filter out profile', async () => {
|
||||
setup();
|
||||
|
||||
expect(await screen.findByTestId(selectors.components.NavMenu.Menu)).toBeInTheDocument();
|
||||
expect(screen.queryByLabelText('Profile')).not.toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user