Skip to content

Commit

Permalink
fix: removing test for previous undesireable behavior (#15458)
Browse files Browse the repository at this point in the history
  • Loading branch information
JessicaSachs committed Mar 12, 2021
1 parent 66d2bd7 commit 35dde75
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions npm/react/cypress/component/viewport-spec.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import React from 'react'
import { mount } from '@cypress/react'

const viewportWidth = 200
const viewportHeight = 100

Expand All @@ -23,17 +20,4 @@ describe('cy.viewport', () => {
expect(window.innerHeight).to.eq(viewportHeight)
})
})

it('should make it scale down when overflowing', () => {
mount(<p>
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.
</p>)

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')
})
})
})

0 comments on commit 35dde75

Please sign in to comment.