-
Notifications
You must be signed in to change notification settings - Fork 42
NEW e2e environment using playground cli #810
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
NEW e2e environment using playground cli #810
Conversation
(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)
…oss one Github actions workflow attempt.
…iled attempts (suggested at GatherPress#776 (comment) by @swissspidy)
|
Wow! 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. |
…iting), including visibility and enabled state
…assertion so that it's properly awaited
Preview changes with PlaygroundYou can preview the recent changes for PR#810 with the following PHP versions: PHP Version 8.3
PHP Version 7.4
Download Made with 💙 from GatherPress & a little bit of WordPress Playground. Changes will not persist between sessions. |
|
Also looping in @swissspidy who might find this work interesting |
|
Instead of playground, I had a lot more success running the E2E tests with 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. |
This PR allows GatherPress to run automated & manual end-to-end tests, while sharing the same,
wp-playground/clipowered, setup. The started playground imports theGatherPress/demo-data, that can be used instead of mocks or fixtures (for now).NEEDEDnice-to-have, before mergeeditor.canvaseasily.(Feature/e2e tests workflow #776 (comment))
Closes #693
How to test the Change
npm run test:e2efor exampleChangelog Entry
Credits
Props @carstingaxion, @WunderBart
Checklist:
/docs/contributor/e2e-tests