git clone https://github.com/bcgov/design-system-wordpress-theme.git
cd design-system-wordpress-theme
composer install
npm i
npm run startnpm run build:production
composer checklistThis project uses Playwright to perform visual regression testing of patterns to help catch unintended changes.
npm run wp-env start # Unless already running
npm run test:screenshotNote: When creating a new pattern it must be added to tests/screenshot/patterns.spec.js in order to be included in regression tests.
The visual-regression workflow runs the update script and commits changes automatically on pull requests, so it's not necessary to commit any updates made locally to the screenshots, but it can still be useful for local development to see what effects your changes will have.
npm run wp-env start # Unless already running
npm run test:screenshot:update