From c1dffbac658cd71513b64b61e666f5b4f44da4c9 Mon Sep 17 00:00:00 2001 From: Ben Kucera <14625260+Bkucera@users.noreply.github.com> Date: Thu, 16 Jul 2020 14:32:10 -0400 Subject: [PATCH] cleanup 2 --- packages/driver/src/cy/commands/window.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/driver/src/cy/commands/window.js b/packages/driver/src/cy/commands/window.js index 8b838e9473f8..cce0416702df 100644 --- a/packages/driver/src/cy/commands/window.js +++ b/packages/driver/src/cy/commands/window.js @@ -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) => {