Skip to content

Conversation

@ryanwelcher
Copy link
Owner

@ryanwelcher ryanwelcher commented Jun 18, 2025

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-playwright as well

@ryanwelcher ryanwelcher changed the title Feature/automated test playground E2E Tests using Playground Aug 7, 2025
@ryanwelcher ryanwelcher added the enhancement New feature or request label Aug 7, 2025
@ryanwelcher ryanwelcher self-assigned this Aug 7, 2025
@ryanwelcher ryanwelcher added this to the 4.4.0 milestone Aug 7, 2025
@ryanwelcher ryanwelcher requested a review from Copilot August 7, 2025 03:32
Copy link
Contributor

Copilot AI left a 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

@ryanwelcher ryanwelcher merged commit 84de2b5 into trunk Sep 19, 2025
7 checks passed
@ryanwelcher ryanwelcher deleted the feature/automated-test-playground branch September 19, 2025 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants