mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-12 06:20:06 +00:00
Visual Regression Tests in WordPress Core
These tests make use of Jest and Puppeteer, with a setup very similar to that of the e2e tests, together with jest-image-snapshot for generating the visual diffs.
How to Run the Tests Locally
- Check out trunk.
- Run
npm run test:visualto generate some base snapshots. - Check out the feature branch to be tested.
- Run
npm run test:visualagain. If any tests fail, the diff images can be found intests/visual-regression/specs/__image_snapshots__/__diff_output__.