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 Playwright.
- Clone the repo
- Run
yarn
to install dependencies - Run
yarn start
to run the site locally (which we test against) - Run
yarn playwright test
to run the Playwright 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 --playwright -t=<project-token>
to make a Chromatic build - Inspect the build in Chromatic