garris / BackstopJS

Catch CSS curve balls.
http://backstopjs.org
MIT License
6.67k stars 605 forks source link

Add support for storageState option to playwright engine. #1426

Closed kevinmpowell closed 2 years ago

kevinmpowell commented 2 years ago

This enables the restoration of cookies and localStorage via the storageState method in Playwright.

It follows the same pattern as other engineOptions already set up in config. I also added light documentation to the README.

For Playwright users this will address #653 #1228 and #933.

garris commented 2 years ago

Thank you for this commit!

kevinmpowell commented 2 years ago

@garris you're welcome! Any idea when the next release will be published? Coworkers are wondering when we can avoid pointing to my fork.

garris commented 2 years ago

New versions just published to NPM and Docker repos.

npm notice === Tarball Details ===
npm notice name:          backstopjs
npm notice version:       6.1.1
npm notice package size:  14.7 MB
npm notice unpacked size: 20.0 MB
npm notice shasum:        3755a86651ac77d1d61e4dfce8f4b481a538bbb5
npm notice integrity:     sha512-g7xUulu8Awzco[...]VV+Kgionx3opg==
npm notice total files:   448
npm notice
+ backstopjs@6.1.1