diff --git a/public/app/core/components/AppChrome/MegaMenu/MegaMenu.test.tsx b/public/app/core/components/AppChrome/MegaMenu/MegaMenu.test.tsx index f03f390709..04527af5db 100644 --- a/public/app/core/components/AppChrome/MegaMenu/MegaMenu.test.tsx +++ b/public/app/core/components/AppChrome/MegaMenu/MegaMenu.test.tsx @@ -1,5 +1,5 @@ import { render, screen } from '@testing-library/react'; -import userEvent from '@testing-library/user-event'; +// import userEvent from '@testing-library/user-event'; import { Router } from 'react-router-dom'; import { TestProvider } from 'test/helpers/TestProvider'; import { getGrafanaContextMock } from 'test/mocks/getGrafanaContextMock'; @@ -56,21 +56,21 @@ describe('MegaMenu', () => { expect(await screen.findByRole('link', { name: 'Section name' })).toBeInTheDocument(); }); - it('should render children', async () => { - setup(); - await userEvent.click(await screen.findByRole('button', { name: 'Expand section Section name' })); - expect(await screen.findByRole('link', { name: 'Child1' })).toBeInTheDocument(); - expect(await screen.findByRole('link', { name: 'Child2' })).toBeInTheDocument(); - }); + // it('should render children', async () => { + // setup(); + // await userEvent.click(await screen.findByRole('button', { name: 'Expand section Section name' })); + // expect(await screen.findByRole('link', { name: 'Child1' })).toBeInTheDocument(); + // expect(await screen.findByRole('link', { name: 'Child2' })).toBeInTheDocument(); + // }); - it('should render grandchildren', async () => { - setup(); - await userEvent.click(await screen.findByRole('button', { name: 'Expand section Section name' })); - expect(await screen.findByRole('link', { name: 'Child1' })).toBeInTheDocument(); - await userEvent.click(await screen.findByRole('button', { name: 'Expand section Child1' })); - expect(await screen.findByRole('link', { name: 'Grandchild1' })).toBeInTheDocument(); - expect(await screen.findByRole('link', { name: 'Child2' })).toBeInTheDocument(); - }); + // it('should render grandchildren', async () => { + // setup(); + // await userEvent.click(await screen.findByRole('button', { name: 'Expand section Section name' })); + // expect(await screen.findByRole('link', { name: 'Child1' })).toBeInTheDocument(); + // await userEvent.click(await screen.findByRole('button', { name: 'Expand section Child1' })); + // expect(await screen.findByRole('link', { name: 'Grandchild1' })).toBeInTheDocument(); + // expect(await screen.findByRole('link', { name: 'Child2' })).toBeInTheDocument(); + // }); it('should filter out profile', async () => { setup();