Skip to content

ci: install the plugins of the e2e tests after wp-env starts - #1432

Merged
vytisbulkevicius merged 1 commit into
developmentfrom
bugfix/1431
Dec 2, 2026
Merged

vytisbulkevicius merged 1 commit into
developmentfrom
bugfix/1431

Conversation

@vytisbulkevicius

Copy link
Copy Markdown
Contributor

The Playwright job fails on each branch because the test site on the runner has no classic-editor and elementor plugins. The workflow now installs both plugins in a step after npx wp-env start.

What changed

  • E2E workflow — a new step runs wp plugin install classic-editor elementor --activate in the tests-cli container before the tests start.

Note

The afterStart script of .wp-env.json stays. It sets the theme and the permalinks, and it installs the plugins for a local wp-env start.

Issue: #1431

🤖 Generated with Claude Code

Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>
@pirate-bot

Copy link
Copy Markdown
Contributor

Plugin build for 2ffa5cf is ready 🛎️!

@pirate-bot pirate-bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approved

The new step installs and activates both plugins after wp-env start and before the Playwright tests, which fixes the reported failure.

Validation details
  • Files reviewed: 1/1 changed files.
  • The step runs in tests-cli, the same site that the afterStart script sets up and the tests use.
  • The Classic Editor and Elementor specs run after the step. A search of the specs and workflows found no other missing plugin.
  • A search of earlier issues and fix commits found no related bug.
Untested areas
  • The CI run of the new step was not observed. GitHub Actions results are not available here.
  • The cause of the lost plugins in wp-env 11.0.0 on the runner was not found.
  • The variant pass did not settle these places, where the fixed cause may still reach:
    • .wp-env.json:19 — unverified: Twenty Twenty-One and permalink configuration remain dependent on afterStart. Issue #1431 explicitly reports both surviving (/workspace/review/history-pack/issues/1431.md:10), but …
    • tests/e2e/specs/onboarding.spec.ts:8-16,26-29 — unverified: onboarding rewrites visualizer_fresh_install but first requires its existing options field. Activation deliberately does not create this option under TI_E2E_TESTING (classes/Visual…
    • bin/run-e2e-tests-default.sh:4-5 — unverified: this wrapper starts wp-env and immediately runs Playwright without reinstalling plugins; no current workflow invocation or matching runner failure was established.
    • not reached: bin/security-audit.sh:101-104 downstream PoC dependencies
    • classes/Visualizer/Module/Setup.php:237-239 — unverified: visualizer_fresh_install is another afterStart prerequisite not restored by the new step, and activation skips creating it under TI_E2E_TESTING; no evidence establishes that the re…
    • package.json:22,30 — unverified: this launcher starts wp-env and immediately runs Playwright without reinstalling plugins. No workflow references it; whether the runner-specific loss reaches this launcher is unkno…

🤖 Automated review · run code-review-agent_6b0fddd7901169.02535024.


🤖 Review agent — review posted ✅ on 2ffa5cf6 · approved · 0 findings · 6 min

Run code-review-agent_6b0fddd7901169.02535024 · trail

@vytisbulkevicius
vytisbulkevicius merged commit 149cea3 into development Dec 2, 2026
10 checks passed
@vytisbulkevicius
vytisbulkevicius deleted the bugfix/1431 branch December 2, 2026 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants