diff --git a/packages/mui-base/src/Menu/Menu.test.tsx b/packages/mui-base/src/Menu/Menu.test.tsx index b69f19a89670cd..5a81a5e17e35c7 100644 --- a/packages/mui-base/src/Menu/Menu.test.tsx +++ b/packages/mui-base/src/Menu/Menu.test.tsx @@ -87,7 +87,7 @@ describe('', () => { }); }); - it('highlights first item when down arrow key opens the menu', () => { + it('highlights first item when down arrow key opens the menu', async () => { const context: DropdownContextValue = { ...testContext, state: { @@ -99,7 +99,7 @@ describe('', () => { } as React.KeyboardEvent, }, }; - const { getAllByRole } = render( + const { getAllByRole } = await render( 1 @@ -116,7 +116,7 @@ describe('', () => { }); }); - it('highlights last item when up arrow key opens the menu', () => { + it('highlights last item when up arrow key opens the menu', async () => { const context: DropdownContextValue = { ...testContext, state: { @@ -128,7 +128,7 @@ describe('', () => { } as React.KeyboardEvent, }, }; - const { getAllByRole } = render( + const { getAllByRole } = await render( 1 @@ -146,7 +146,7 @@ describe('', () => { }); }); - it('highlights last non-disabled item when disabledItemsFocusable is set to false', () => { + it('highlights last non-disabled item when disabledItemsFocusable is set to false', async () => { const CustomMenu = React.forwardRef(function CustomMenu( props: React.ComponentPropsWithoutRef<'ul'>, ref: React.Ref, @@ -180,7 +180,7 @@ describe('', () => { } as React.KeyboardEvent, }, }; - const { getAllByRole } = render( + const { getAllByRole } = await render( 1