Showcases Chromatic's E2E Visual Tests in a real-world setting. We use the MealDrop app as an example of how to catch visual regressions as part of our E2E testing with Cypress.
- Clone the repo
- Run
yarn
to install dependencies - Run
yarn start
to run the site locally (which we test against) - Run
yarn cypress run
to run the Cypress tests (which we automatically snapshot) - (Optional) Run
yarn archive-storybook
to see the storybook created for the tests (e.g. to visually see what we snapshotted) - Run
npx chromatic@latest --build-script-name=build-archive-storybook -t=<project-token>
to make a Chromatic build - Inspect the build in Chromatic