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:
Ashley Harrison 2024-01-04 11:25:48 +00:00 committed by GitHub
parent 70a25eaf2c
commit 5154a9d99c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
});
});