mirror of
git://develop.git.wordpress.org/
synced 2025-02-24 00:24:52 +01:00
As per the migration plan shared last year, this migrates all browser-based tests in WordPress core to use Playwright. This includes end-to-end, performance, and visual regression tests. Props swissspidy, mamaduka, kevin940726, bartkalisz, desrosj, adamsilverstein. Fixes #59517. git-svn-id: https://develop.svn.wordpress.org/trunk@56926 602fd350-edb4-49c9-b593-d223f7449a82
12 lines
396 B
Markdown
12 lines
396 B
Markdown
# Visual Regression Tests in WordPress Core
|
|
|
|
These tests make use of Playwright, with a setup very similar to that of the e2e tests.
|
|
|
|
## 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 `artifacts/`
|
|
|