Skip to content
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

E2E tests for playground.wordpress.net #765

Closed
adamziel opened this issue Nov 22, 2023 · 1 comment · Fixed by #802
Closed

E2E tests for playground.wordpress.net #765

adamziel opened this issue Nov 22, 2023 · 1 comment · Fixed by #802
Labels
Tests [Type] Enhancement New feature or request

Comments

@adamziel
Copy link
Collaborator

Playground has no automated E2E test suite at the moment, which means critical features like switching PHP and WordPress versions are tested manually. Let's add E2E tests.

Done is:

  • GitHub actions automatically run E2E tests on new Pull Requests
  • The tests cover these most important features via the Query API, user interface, and the Blueprints API (URL hash):
    • Switching PHP versions
    • Switching WordPress versions
    • Networking support
    • PHP extensions support
    • Seamless mode
  • A series of follow-up issues is created to track E2E tests for:
    • PlaygroundClient actually connecting to the remote.html API
    • OPFS synchronization in the browser
    • OPFS synchronization with the local filesystem
    • Other Query API parameters
    • GitHub integration
    • WordPress PR previewer
    • Gutenberg PR previewer
    • Anything else that comes to mind
@adamziel adamziel added [Type] Enhancement New feature or request Tests labels Nov 22, 2023
@adamziel adamziel changed the title Add E2E tests for playground.wordpress.net E2E tests for playground.wordpress.net Nov 22, 2023
@adamziel
Copy link
Collaborator Author

Related: https://nx.dev/nx-api/cypress

adamziel added a commit that referenced this issue Nov 27, 2023
This PR:

* Adds end-to-end (E2E) tests using Cypress to cover critical features
in the WordPress playground.
* Adds these e2e tests to GitHub CI workflows for every PR

Depends on #801
Closes #765

The E2E tests cover:

- Switching PHP versions
- Switching WordPress versions  
- Networking support
- PHP extensions support
- Seamless mode
- OPFS synchronization in the browser
- "None" storage mode

The tests interact with the playground through:

- The Query API
- The user interface

This provides automated testing for the core functionality identified in
#765.

Additional tests will be tracked in follow-up issues:

- Connecting PlaygroundClient to the remote.html API
- OPFS synchronization with local filesystem  
- GitHub integration
- WordPress PR previewer
- Gutenberg PR previewer

<img width="2004" alt="CleanShot 2023-11-26 at 01 01 21@2x"
src="https://github.com/WordPress/wordpress-playground/assets/205419/e2353096-bbad-4fb9-a293-ea52fac14f05">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tests [Type] Enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant