Skip to content

Commit

Permalink
skip browser tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mnajdova committed Aug 12, 2024
1 parent e6121e6 commit 0c6c28e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/mui-material/src/IconButton/IconButton.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,11 @@ describe('<IconButton />', () => {
)).not.to.throw();
});

it('should apply the hover background by default', () => {
it('should apply the hover background by default', function test() {
if(!/jsdom/.test(window.navigator.userAgent)) {
this.skip();
}

const { container, getByTestId } = render(<IconButton data-testid="icon-button" />);

fireEvent.mouseMove(container.firstChild, {
Expand All @@ -154,6 +158,10 @@ describe('<IconButton />', () => {
});

it('should not apply the hover background if disableRipple is true', () => {
if(!/jsdom/.test(window.navigator.userAgent)) {
this.skip();
}

const { container, getByTestId } = render(
<IconButton disableRipple data-testid="icon-button" />,
);
Expand Down

0 comments on commit 0c6c28e

Please sign in to comment.