eBay / skin

Pure CSS framework designed & developed by eBay for a branded, e-commerce marketplace.
https://ebay.github.io/skin/
MIT License
178 stars 67 forks source link

Percy: build custom SDK to snapshot areas/elements of page #858

Closed ianmcburnie closed 4 years ago

ianmcburnie commented 5 years ago

Out of the box, Percy snapshots the entire web page, which isn't very helpful on long pages like we have in Skin. It is possible though to roll our own custom SDK that snapshots sections/elements of a page:

https://docs.percy.io/docs/build-your-own-sdk

From Percy team:

"Did you build your own SDK? I noticed the user agent is missing some SDK details If so, you totally can build this into your SDK -- you can transform the DOM snapshot that's taken and scope it down to part of the page you'd like "

Hopefully this would allow us to snapshot the contents of our .demo sections.

ianmcburnie commented 4 years ago

Looking likely we will move to Storybook instead (#990), where we can view and snapshot test cases in isolation.

Closing.