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 authored and GitHub committed 2024-01-04 11:25:48 +00:00
1 parent 70a25eaf2c
commit 5154a9d99c
1 file changed
+1
@@ -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();
});
});