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 with cypress #802

Merged
merged 18 commits into from
Nov 27, 2023
Merged

E2E tests with cypress #802

merged 18 commits into from
Nov 27, 2023

Conversation

adamziel
Copy link
Collaborator

@adamziel adamziel commented Nov 25, 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
CleanShot 2023-11-26 at 01 01 21@2x

@adamziel adamziel added [Type] Enhancement New feature or request Tests labels Nov 25, 2023
@adamziel adamziel requested a review from a team as a code owner November 25, 2023 23:59
@adamziel adamziel self-assigned this Nov 26, 2023
@adamziel adamziel mentioned this pull request Nov 27, 2023
@adamziel
Copy link
Collaborator Author

Whaaaaa! These e2e tests finished running faster than the unit tests 🎉

@adamziel adamziel merged commit e034518 into trunk Nov 27, 2023
5 checks passed
@adamziel adamziel deleted the e2e-tests-cypress branch November 27, 2023 12:36
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 this pull request may close these issues.

E2E tests for playground.wordpress.net
1 participant