Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Outline

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

  1. Check out trunk.
  2. Run npm run test:visual to generate some base snapshots.
  3. Check out the feature branch to be tested.
  4. Run npm run test:visual again. If any tests fail, the diff images can be found in tests/visual-regression/specs/__image_snapshots__/__diff_output__.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.