Skip to content

Commit

Permalink
Remove act from MiradorMenuButton test.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Nov 7, 2024
1 parent 44e7b2b commit 7792cdf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions __tests__/src/components/MiradorMenuButton.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ describe('MiradorMenuButton', () => {
const user = userEvent.setup();
createWrapper({ TooltipProps: { placement: 'left-start' } });

await act(async () => {
await user.hover(screen.getByRole('button'));
});
await user.hover(screen.getByRole('button'));

expect(await screen.findByRole('tooltip')).toHaveTextContent('The Label');

expect(screen.getByText('The Label')).toHaveClass('MuiTooltip-tooltipPlacementLeft');
Expand Down

0 comments on commit 7792cdf

Please sign in to comment.