Skip to content

Commit c9bbc28

Browse files
Added support for responsive snapshot capture (#289)
* Added support for responsive snapshot capture * Add null check * add null check * Make cookie collection fail safe * Fix null pointer while running tests * Fix for null pointer errors * CLI version bump * Addressed comments * Trigger Build * Update readme
1 parent e246873 commit c9bbc28

File tree

5 files changed

+381
-153
lines changed

5 files changed

+381
-153
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ $ percy exec -- [java test command]
9494

9595
The snapshot method arguments:
9696

97-
`percy.snapshot(name, widths[], minHeight, enableJavaScript, percyCSS, scope)`
97+
`percy.snapshot(name, widths[], minHeight, enableJavaScript, percyCSS, scope, sync, responsiveSnapshotCapture)`
9898

9999
- `name` (**required**) - The snapshot name; must be unique to each snapshot
100100
- Additional snapshot options (overrides any project options):
@@ -104,6 +104,8 @@ The snapshot method arguments:
104104
- `percyCSS` - Percy specific CSS only applied in Percy's rendering
105105
environment
106106
- `scope` - A CSS selector to scope the screenshot to
107+
- `sync` - For getting syncronous results https://www.browserstack.com/docs/percy/advanced/sync-comparison-results
108+
- `responsiveSnapshotCapture` - For capturing snapshot of responsive websites
107109

108110

109111
## Upgrading

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"test": "npx percy exec --testing -- mvn test"
55
},
66
"devDependencies": {
7-
"@percy/cli": "1.28.0"
7+
"@percy/cli": "1.29.5-beta.0"
88
}
99
}

0 commit comments

Comments
 (0)