diff --git a/.github/workflows/playwright-tests.yml b/.github/workflows/playwright-tests.yml index b78a968..6159564 100644 --- a/.github/workflows/playwright-tests.yml +++ b/.github/workflows/playwright-tests.yml @@ -36,32 +36,12 @@ jobs: - name: Install Playwright run: npx playwright install chromium - - name: Start WordPress Playground - run: | - npx @wp-playground/cli server \ - --blueprint=blueprint.json \ - --php=${{ matrix.php }} \ - --wp=${{ matrix.wp }} \ - --port=9400 \ - --auto-mount & - echo "PLAYGROUND_PID=$!" >> $GITHUB_ENV - env: - CI: true - - - name: Wait for WordPress Playground to be ready - run: | - timeout 60 bash -c 'until curl -sSf http://127.0.0.1:9400 > /dev/null 2>&1; do sleep 2; done' || echo "WordPress Playground may not be fully ready" - sleep 5 - - - name: Debug - Check WordPress Playground status - run: | - curl -I http://127.0.0.1:9400 || echo "WordPress Playground not responding" - - name: Run E2E tests run: npm run test:e2e env: - WP_BASE_URL: http://127.0.0.1:9400 CI: true + PLAYGROUND_PHP: ${{ matrix.php }} + PLAYGROUND_WP: ${{ matrix.wp }} - name: Upload test results if: always() @@ -79,13 +59,6 @@ jobs: path: playwright-report/ retention-days: 7 - - name: Stop WordPress Playground - if: always() - run: | - if [ ! -z "$PLAYGROUND_PID" ]; then - kill $PLAYGROUND_PID || true - fi - - name: Comment test results on PR if: github.event_name == 'pull_request' && always() uses: daun/playwright-report-summary@v3 diff --git a/CLAUDE.md b/CLAUDE.md index 0863184..4fcdaff 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -7,7 +7,7 @@ WordPress block plugin that embeds HubSpot Forms v4 directly in page content. Th Single block (`hubspot/form`) that: - Accepts Portal ID, region, Form ID, redirect URL, submit button text, GTM event name - Supports optional inner blocks as a success message shown in place of the form after submission -- Emits a `