Skip to content

Commit

Permalink
Added support for responsive snapshot capture (#289)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
chinmay-browserstack authored Oct 3, 2024
1 parent e246873 commit c9bbc28
Show file tree
Hide file tree
Showing 5 changed files with 381 additions and 153 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ $ percy exec -- [java test command]

The snapshot method arguments:

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

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


## Upgrading
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"test": "npx percy exec --testing -- mvn test"
},
"devDependencies": {
"@percy/cli": "1.28.0"
"@percy/cli": "1.29.5-beta.0"
}
}
Loading

0 comments on commit c9bbc28

Please sign in to comment.