Fix WordPress Playground tests: update port for multisite, improve test reliability

This commit is contained in:
2025-04-22 16:57:56 +01:00
parent fa92ca58df
commit ef60ce0c9d
4 changed files with 57 additions and 8 deletions

View File

@@ -102,14 +102,14 @@ jobs:
- name: Run tests with WordPress Playground
run: |
# Start WordPress Playground with our blueprint
npx @wp-playground/cli server --blueprint playground/multisite-blueprint.json --port 8889 --login &
npx @wp-playground/cli server --blueprint playground/multisite-blueprint.json --port 8888 --login &
# Wait for WordPress Playground to be ready
echo "Waiting for WordPress Playground to be ready..."
timeout 60 bash -c 'until curl -s http://localhost:8889; do sleep 2; done'
timeout 60 bash -c 'until curl -s http://localhost:8888; do sleep 2; done'
# Run Cypress tests against WordPress Playground
npx cypress run --config specPattern=cypress/e2e/playground-multisite.cy.js,baseUrl=http://localhost:8889
npx cypress run --config specPattern=cypress/e2e/playground-multisite.cy.js
performance-test:
name: WordPress Performance Tests