Make WordPress Core


Ignore:
Timestamp:
10/13/2023 08:11:41 AM (2 years ago)
Author:
swissspidy
Message:

Build/Test Tools: Migrate Puppeteer tests to Playwright.

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/visual-regression/README.md

    r51989 r56926  
    11# Visual Regression Tests in WordPress Core
    22
    3 These tests make use of Jest and Puppeteer, with a setup very similar to that of the e2e tests, together with [jest-image-snapshot](https://github.com/americanexpress/jest-image-snapshot) for generating the visual diffs.
     3These tests make use of Playwright, with a setup very similar to that of the e2e tests.
    44
    55## How to Run the Tests Locally
     
    882. Run `npm run test:visual` to generate some base snapshots.
    993. Check out the feature branch to be tested.
    10 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__`.
     104. Run `npm run test:visual` again. If any tests fail, the diff images can be found in `artifacts/`
    1111
Note: See TracChangeset for help on using the changeset viewer.