Make WordPress Core

Changeset 51989 for trunk/package.json


Ignore:
Timestamp:
11/02/2021 09:03:10 PM (4 years ago)
Author:
hellofromTonya
Message:

Build/Test Tools: Introduce local visual regression testing.

Adds the ability to locally run visual regression testing for wp-admin pages via npm run test:visual. Snapshots are stored on contributors' local machines.

Note:
Wiring to the CI is not included. Why? The challenges for the CI are storage of the artifacts and unreliability of testing these across different environments.

This commit is a first step towards visual regression testing. Running it locally provides a learning opportunity which could help to craft how to build it into the automated CI process.

Props isabel_brison, andraganescu, azaozz, danfarrow, desrosj, hellofromTonya, justinahinon, netweb, talldanwp.
Fixes #49606.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package.json

    r51974 r51989  
    6262        "ink-docstrap": "1.3.2",
    6363        "install-changed": "1.1.0",
     64        "jest-image-snapshot": "3.0.1",
    6465        "matchdep": "~2.0.0",
    6566        "prettier": "npm:wp-prettier@2.0.5",
     
    173174        "test:php": "node ./tools/local-env/scripts/docker.js run -T php composer update -W && node ./tools/local-env/scripts/docker.js run php ./vendor/bin/phpunit",
    174175        "test:e2e": "node ./tests/e2e/run-tests.js",
     176        "test:visual": "node ./tests/visual-regression/run-tests.js",
    175177        "wp-packages-update": "wp-scripts packages-update"
    176178    }
Note: See TracChangeset for help on using the changeset viewer.