-
Notifications
You must be signed in to change notification settings - Fork 28
Description
Visual Snapshot Tests are a great feature to use when working with storybooks.
I feel surface catalogue could work really well with that.
One great way to accomplish that is using the awesome jest-image-snapshot
I created a sample MR of what it would take to have something like that working with Catalogue: surface-ui/surface_bootstrap#9
If the approach of using jest-image-snapshot + puppeteer was taken, surface_catalogue should expose a JSON endpoint with all available examples, and their metadata, I think, and the jest script could handle all else.
If catalogue were to recommend some form of CI tests using the snapshots, I believe it should recommend using a docker image with puppetter and chrome (like the ones provided by browserless), to control system fonts and browser version.