From 4eaffa28c1310d5ed4b713312ed1dd8997db51c7 Mon Sep 17 00:00:00 2001 From: DiegoAndai Date: Tue, 8 Oct 2024 15:52:39 -0300 Subject: [PATCH] Remove hover tests --- .../src/IconButton/IconButton.test.js | 47 ------------------- 1 file changed, 47 deletions(-) diff --git a/packages/mui-material/src/IconButton/IconButton.test.js b/packages/mui-material/src/IconButton/IconButton.test.js index 6de989264d46b4..de3528c4f05347 100644 --- a/packages/mui-material/src/IconButton/IconButton.test.js +++ b/packages/mui-material/src/IconButton/IconButton.test.js @@ -142,53 +142,6 @@ describe('', () => { )).not.to.throw(); }); - it('should apply the hover background by default', function test() { - if (!/jsdom/.test(window.navigator.userAgent)) { - this.skip(); - } - - const { container, getByTestId } = render(); - - fireEvent.mouseMove(container.firstChild, { - clientX: 19, - }); - expect(getByTestId('icon-button')).toHaveComputedStyle({ - backgroundColor: 'rgba(0, 0, 0, 0.04)', - }); - }); - - it('should apply the colored hover background if color is provided', function test() { - if (!/jsdom/.test(window.navigator.userAgent)) { - this.skip(); - } - - const { container, getByTestId } = render( - , - ); - - fireEvent.mouseMove(container.firstChild, { - clientX: 19, - }); - expect(getByTestId('icon-button')).toHaveComputedStyle({ - backgroundColor: 'rgba(25, 118, 210, 0.04)', - }); - }); - - it('should not apply the hover background if disableRipple is true', function test() { - if (!/jsdom/.test(window.navigator.userAgent)) { - this.skip(); - } - - const { container, getByTestId } = render( - , - ); - - fireEvent.mouseMove(container.firstChild, { - clientX: 19, - }); - expect(getByTestId('icon-button')).toHaveComputedStyle({ backgroundColor: 'rgba(0, 0, 0, 0)' }); - }); - it('should disable ripple if disableRipple:true is set in MuiButtonBase', async () => { const { container, getByRole } = render(