Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kuceb committed Jul 16, 2020
1 parent 3590771 commit a723585
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/driver/src/cy/commands/window.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ module.exports = (Commands, Cypress, cy, state) => {
// need to restore prior to running the next test
// after which we simply null and wait for the
// next viewport change
const defaultViewport = _.pick(Cypress.config(), 'viewportWidth', 'viewportHeight')
const testDefaultViewport = _.pick(Cypress.config(), 'viewportWidth', 'viewportHeight')

setViewportAndSynchronize(defaultViewport.viewportWidth, defaultViewport.viewportHeight)
setViewportAndSynchronize(testDefaultViewport.viewportWidth, testDefaultViewport.viewportHeight)
})

const setViewportAndSynchronize = (width, height) => {
Expand Down

0 comments on commit a723585

Please sign in to comment.