Skip to content

Commit

Permalink
Merge pull request #3979 from ProjectMirador/no-act
Browse files Browse the repository at this point in the history
Remove act from MiradorMenuButton test.
  • Loading branch information
marlo-longley authored Nov 12, 2024
2 parents dd5de5b + 7792cdf commit 7d85ce6
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 7d85ce6

Please sign in to comment.