diff --git a/npm/react/cypress/component/viewport-spec.jsx b/npm/react/cypress/component/viewport-spec.jsx index 836dd6598054..74ac9ec72ca4 100644 --- a/npm/react/cypress/component/viewport-spec.jsx +++ b/npm/react/cypress/component/viewport-spec.jsx @@ -1,6 +1,3 @@ -import React from 'react' -import { mount } from '@cypress/react' - const viewportWidth = 200 const viewportHeight = 100 @@ -23,17 +20,4 @@ describe('cy.viewport', () => { expect(window.innerHeight).to.eq(viewportHeight) }) }) - - it('should make it scale down when overflowing', () => { - mount(

- Lorem, ipsum dolor sit amet consectetur adipisicing elit. - Incidunt necessitatibus quia quo obcaecati tempora numquam nobis - minima libero vel? Nam sequi iusto quod fugit vel rerum eligendi beatae voluptatibus numquam. -

) - - expect(getComputedStyle(window.parent.document.querySelector('iframe').parentElement).transform).to.contain('matrix(0.8') - cy.viewport(2000, 200).should(() => { - expect(getComputedStyle(window.parent.document.querySelector('iframe').parentElement).transform).not.to.contain('matrix(1') - }) - }) })