-
Notifications
You must be signed in to change notification settings - Fork 21
E2E Tests using Playground #121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces end-to-end testing capabilities using Playwright and WordPress Playground CLI. It sets up a comprehensive E2E testing framework that allows testing WordPress blocks and functionality in a realistic environment.
Key changes:
- Establishes E2E testing infrastructure with Playwright configuration and custom fixtures
- Implements utility functions and selector helpers for WordPress block testing
- Adds automated testing for pagination toggle and additional post types functionality
Reviewed Changes
Copilot reviewed 13 out of 15 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/e2e/utils.ts | Core utility functions for inserting AQL blocks and form field selection |
| tests/e2e/aql-fixtures.ts | Custom Playwright fixtures extending base test with WordPress utilities |
| tests/e2e/Playground.ts | Playground CLI integration class for WordPress environment setup |
| tests/e2e/Selectors.ts | Selector utility class for common UI element interactions |
| tests/e2e/playwright.config.ts | Playwright test configuration with browser settings |
| tests/e2e/tests/*.spec.ts | Test suites covering pagination toggle, basic functionality, and post types |
| package.json | Dependencies and test scripts for E2E testing |
| .github/workflows/e2e.yml | CI workflow for automated E2E testing |
| _blueprints/e2e-blueprint.json | WordPress Playground blueprint configuration |
This PR adds some E2E tests that leverage Playground CLI. It also extends Playwrite with a custom fixture to allow using the utils in
@wordpress/e2e-test-utils-playwrightas well