From 35dde753560e9d53d1c49131187ff30d8e31fc75 Mon Sep 17 00:00:00 2001 From: Jessica Sachs Date: Fri, 12 Mar 2021 17:58:43 -0500 Subject: [PATCH] fix: removing test for previous undesireable behavior (#15458) --- npm/react/cypress/component/viewport-spec.jsx | 16 ---------------- 1 file changed, 16 deletions(-) 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') - }) - }) })