From 5154a9d99cdaeee4fe160efdaa84bc9bb3f94fe2 Mon Sep 17 00:00:00 2001 From: Ashley Harrison Date: Thu, 4 Jan 2024 11:25:48 +0000 Subject: [PATCH] Chore: wait for component to render properly to prevent act warning (#80016) wait for component to render properly to prevent act warning --- public/app/core/components/AppChrome/MegaMenu/MegaMenu.test.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/public/app/core/components/AppChrome/MegaMenu/MegaMenu.test.tsx b/public/app/core/components/AppChrome/MegaMenu/MegaMenu.test.tsx index 5267d50c0f4..3d220c4b80c 100644 --- a/public/app/core/components/AppChrome/MegaMenu/MegaMenu.test.tsx +++ b/public/app/core/components/AppChrome/MegaMenu/MegaMenu.test.tsx @@ -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(); }); });