Enhance testing framework with WordPress Playground integration

This commit is contained in:
2025-04-21 22:30:10 +01:00
parent 572c23df89
commit d6b2349af8
5 changed files with 245 additions and 24 deletions

View File

@@ -13,10 +13,10 @@
"test:single:headless": "cypress run --config specPattern=cypress/e2e/single-site.cy.js",
"test:multisite": "cypress open --config specPattern=cypress/e2e/multisite.cy.js",
"test:multisite:headless": "cypress run --config specPattern=cypress/e2e/multisite.cy.js",
"playground:single": "wp-playground start --blueprint playground/blueprint.json --port 8888",
"playground:multisite": "wp-playground start --blueprint playground/multisite-blueprint.json --port 8888",
"test:playground:single": "npm run playground:single & sleep 10 && npm run test:single:headless",
"test:playground:multisite": "npm run playground:multisite & sleep 10 && npm run test:multisite:headless",
"setup:playground:single": "bash bin/setup-test-env.sh playground-single",
"setup:playground:multisite": "bash bin/setup-test-env.sh playground-multisite",
"test:playground:single": "npm run setup:playground:single && sleep 10 && npm run test:single:headless",
"test:playground:multisite": "npm run setup:playground:multisite && sleep 10 && npm run test:multisite:headless",
"build": "./build.sh",
"lint:php": "composer run-script phpcs",
"lint:php:simple": "composer run-script phpcs:simple",