You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
lucasavila00
changed the title
Visual Testing
Visual Testing of Examples - Request for JSON API Endpoint
Jun 20, 2021
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.
The text was updated successfully, but these errors were encountered: