Skip to content

Commit

Permalink
cleanup 2
Browse files Browse the repository at this point in the history
  • Loading branch information
kuceb committed Jul 16, 2020
1 parent a723585 commit c1dffba
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 testDefaultViewport = _.pick(Cypress.config(), 'viewportWidth', 'viewportHeight')
const configDefaultViewport = _.pick(Cypress.config(), 'viewportWidth', 'viewportHeight')

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

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

0 comments on commit c1dffba

Please sign in to comment.