Skip to content

Conversation

@taipeicoder
Copy link
Contributor

@taipeicoder taipeicoder commented Jan 6, 2026

Summary

  • Add E2E test infrastructure for mu-wpcom-plugin following established patterns from other Jetpack plugins
  • Include basic activation tests verifying plugin is active and admin pages load without errors
  • Uses @wordpress/e2e-test-utils-playwright for standalone testing (no Jetpack dependency)

Testing instructions

  1. Check out this branch
  2. Run pnpm install from the monorepo root
  3. Start the Docker environment: pnpm jetpack docker up
  4. Activate the plugin: pnpm jetpack docker wp plugin activate jetpack-mu-wpcom-plugin
  5. Navigate to the E2E test directory: cd projects/plugins/mu-wpcom-plugin/tests/e2e
  6. Run pnpm install
  7. Run the tests: pnpm playwright test --config=playwright.config.ts
  8. Verify both tests pass:
    • "Plugin is active and admin is accessible"
    • "Admin pages load without errors"

Does this pull request change what data or activity we track or use?

No, this PR only adds E2E tests and does not change any data tracking or privacy-related functionality.

🤖 Generated with Claude Code

taipeicoder and others added 2 commits January 6, 2026 13:42
Add E2E test infrastructure for the mu-wpcom-plugin following the
established patterns from other Jetpack plugins. Includes:

- Playwright configuration extending e2e-commons
- Basic activation tests verifying plugin is active and admin pages load
- Local development config for testing against dev Docker environment

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@github-actions
Copy link
Contributor

github-actions bot commented Jan 6, 2026

Thank you for your PR!

When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:

  • ✅ Include a description of your PR changes.
  • ✅ Add a "[Status]" label (In Progress, Needs Review, ...).
  • ✅ Add a "[Type]" label (Bug, Enhancement, Janitorial, Task).
  • ✅ Add testing instructions.
  • ✅ Specify whether this PR includes any changes to data or privacy.
  • ✅ Add changelog entries to affected projects

This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖


Follow this PR Review Process:

  1. Ensure all required checks appearing at the bottom of this PR are passing.
  2. Make sure to test your changes on all platforms that it applies to. You're responsible for the quality of the code you ship.
  3. You can use GitHub's Reviewers functionality to request a review.
  4. When it's reviewed and merged, you will be pinged in Slack to deploy the changes to WordPress.com simple once the build is done.

If you have questions about anything, reach out in #jetpack-developers for guidance!


Mu Wpcom plugin:

  • Next scheduled release: WordPress.com Simple releases happen semi-continuously (PCYsg-Jjm-p2)

If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack.

@github-actions github-actions bot added the [Status] Needs Author Reply We need more details from you. This label will be auto-added until the PR meets all requirements. label Jan 6, 2026
@taipeicoder taipeicoder marked this pull request as draft January 6, 2026 18:48
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@github-actions
Copy link
Contributor

github-actions bot commented Jan 6, 2026

Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.

  • To test on WoA, go to the Plugins menu on a WoA dev site. Click on the "Upload" button and follow the upgrade flow to be able to upload, install, and activate the Jetpack Beta plugin. Once the plugin is active, go to Jetpack > Jetpack Beta, select your plugin (Jetpack or WordPress.com Site Helper), and enable the add/mu-wpcom-plugin-e2e-tests branch.
  • To test on Simple, run the following command on your sandbox:
bin/jetpack-downloader test jetpack add/mu-wpcom-plugin-e2e-tests
bin/jetpack-downloader test jetpack-mu-wpcom-plugin add/mu-wpcom-plugin-e2e-tests

Interested in more tips and information?

  • In your local development environment, use the jetpack rsync command to sync your changes to a WoA dev blog.
  • Read more about our development workflow here: PCYsg-eg0-p2
  • Figure out when your changes will be shipped to customers here: PCYsg-eg5-p2

@jp-launch-control
Copy link

jp-launch-control bot commented Jan 6, 2026

Code Coverage Summary

This PR did not change code coverage!

That could be good or bad, depending on the situation. Everything covered before, and still is? Great! Nothing was covered before? Not so great. 🤷

Full summary · PHP report · JS report

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@github-actions github-actions bot added the Actions GitHub actions used to automate some of the work around releases and repository management label Jan 6, 2026
- Use @wordpress/e2e-test-utils-playwright directly instead of e2e-commons fixtures
- Simplify playwright config to not require Jetpack-specific setup
- Remove local test files (no longer needed)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
taipeicoder and others added 2 commits January 6, 2026 14:57
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Allow E2E tests to run without Jetpack plugin installed by checking
if Jetpack is available before activating it or deactivating modules.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@taipeicoder taipeicoder closed this Jan 6, 2026
@taipeicoder taipeicoder deleted the add/mu-wpcom-plugin-e2e-tests branch January 6, 2026 20:44
@github-actions github-actions bot removed [Status] Needs Author Reply We need more details from you. This label will be auto-added until the PR meets all requirements. [Status] In Progress labels Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Actions GitHub actions used to automate some of the work around releases and repository management E2E Tests [Plugin] mu wpcom jetpack-mu-wpcom plugin [Tests] Includes Tests [Type] Janitorial

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants