Skip to content

Commit 38bb619

Browse files
committed
feat: update default viewport size
1 parent 2dbc367 commit 38bb619

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ Folder structure is hard coded (see below). There will be enhancements coming in
100100
In order to force the screenshot resolution when running a test you will need to set the following environment variables:
101101

102102
```js
103-
export HEIGHT=2240 // Default is set to 1280
104-
export WIDTH=1980 // Default is set to 720
103+
export HEIGHT=1980 // Default is set to 1440
104+
export WIDTH=2240 // Default is set to 1980
105105
```
106106

107107
### Please notice

src/command.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const compareSnapshotCommand = defaultScreenshotOptions => {
2-
const height = process.env.HEIGHT || '1280'
3-
const width = process.env.WIDTH || '720'
2+
const height = process.env.HEIGHT || '1440'
3+
const width = process.env.WIDTH || '1980'
44

55
// Force screenshot resolution to keep consistency of test runs across machines
66
Cypress.config('viewportHeight', height)

0 commit comments

Comments
 (0)