Skip to content

Conversation

@carstingaxion
Copy link
Collaborator

@carstingaxion carstingaxion commented Aug 17, 2024

This PR allows GatherPress to run automated & manual end-to-end tests, while sharing the same, wp-playground/cli powered, setup. The started playground imports the GatherPress/demo-data, that can be used instead of mocks or fixtures (for now).

NEEDED nice-to-have, before merge

Closes #693

How to test the Change

  1. Checkout this PR locally
  2. Follow the before mentioned installation instructions
  3. Run Playwright by one of the 4 given options, try npm run test:e2e for example

Changelog Entry

Changed environment for e2e-tests to run on wp-playground/cli

Credits

Props @carstingaxion, @WunderBart

Checklist:

(which is a bit weird, because the playwright.config.ts setting is ignored and the folder needs to be re-named to 'tests' to make tests be found at all)
TRICKY: Enabled mapping leads to 404 for build blocks, Disabled mapping helps gatherpress blocks, but make the simple paragraph test fail (copied for debugging from gutenberg)
@carstingaxion
Copy link
Collaborator Author

Wow!
Thank you very much for your detailed review @WunderBart !

Given that we never ever had any contact and that I was working just yesterday evening on this stuck PR, I do call this a great community moment!

I absolutely appreciate you flying by and taking the time, thank you very much!

@WunderBart
Copy link

WunderBart commented Sep 25, 2024

Wow! Thank you very much for your detailed review @WunderBart !

Given that we never ever had any contact and that I was working just yesterday evening on this stuck PR, I do call this a great community moment!

I absolutely appreciate you flying by and taking the time, thank you very much!

Happy to help, @carstingaxion! I did spend a lot of time with Playwright so please don't hesitate to ping me anytime! 🙌 😄

BTW, I noticed a lot of increased timeouts for the actions (mostly clicks) in this PR. Is it because the app is responding slowly? Maybe we could come up with some pre-test solution for that, or configure (action) timeouts globally.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 7, 2024

Preview changes with Playground

You can preview the recent changes for PR#810 with the following PHP versions:

PHP Version 8.3

PHP Version 7.4

Download .zip with build changes

Made with 💙 from GatherPress & a little bit of WordPress Playground. Changes will not persist between sessions.

@adamziel
Copy link

adamziel commented Oct 8, 2024

Also looping in @swissspidy who might find this work interesting

@mauteri mauteri changed the base branch from main to develop October 10, 2024 13:00
@mauteri
Copy link
Contributor

mauteri commented Dec 6, 2025

Instead of playground, I had a lot more success running the E2E tests with wp-env. #1173

Going to close this now that the environment issue is resolved and we can focus on writing E2E tests that run successfully locally and in the CI.

@mauteri mauteri closed this Dec 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

help wanted Extra attention is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DEBUG End-End Testing

4 participants