diff --git a/README.md b/README.md index cf497b8..6bf05c6 100644 --- a/README.md +++ b/README.md @@ -100,8 +100,8 @@ Folder structure is hard coded (see below). There will be enhancements coming in In order to force the screenshot resolution when running a test you will need to set the following environment variables: ```js -export HEIGHT=2240 // Default is set to 1280 -export WIDTH=1980 // Default is set to 720 +export HEIGHT=1980 // Default is set to 1440 +export WIDTH=2240 // Default is set to 1980 ``` ### Please notice diff --git a/src/command.js b/src/command.js index 14a62e4..b65fd8a 100644 --- a/src/command.js +++ b/src/command.js @@ -1,6 +1,6 @@ const compareSnapshotCommand = defaultScreenshotOptions => { - const height = process.env.HEIGHT || '1280' - const width = process.env.WIDTH || '720' + const height = process.env.HEIGHT || '1440' + const width = process.env.WIDTH || '1980' // Force screenshot resolution to keep consistency of test runs across machines Cypress.config('viewportHeight', height)