Skip to content

Conversation

@timhaines
Copy link

Discussed with @hharnisc. Making a PR here to make it easy for Harrison to explore.

Purpose

Add percy-storybook. Will take visual snapshots of the web components, and show changes in Percy.io

Things to Note

This adds one package and one script to the package.json.

To run it in development mode, setup the environment variables* and run npm run percy-snapshot.

After you're happy that it's running nicely, and creating nice deterministic screenshots, add it to your CI builds to add automatic visual regression testing and reviews. This could be done on the buffer-components repo too if useful.

The two environment variables you'll need to set before running it are PERCY_TOKEN and PERCY_PROJECT. They are available via https://percy.io from project settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant