-
Notifications
You must be signed in to change notification settings - Fork 30
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
Feature/e2e tests workflow #776
Feature/e2e tests workflow #776
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)
PR Summary
|
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)
Hello @swissspidy , nice that you take the time & have a look; Thank you! I've removed the While there are many tests failing now, because of my changes; let's ignore most of them for now. Those are the existing tests, that I haven't touched yet. But let us please focus on EDIT: Please take a look at https://github.com/GatherPress/gatherpress/actions/runs/10348428519/job/28640652754?pr=776#step:8:231 which is the result of one of the simplest paragraph tests from gutenberg, which fails. |
This comment was marked as resolved.
This comment was marked as resolved.
…oss one Github actions workflow attempt.
This comment was marked as resolved.
This comment was marked as resolved.
A screenshot of the browser is more helpful than one from the terminal, but thanks :) The test you copied from Gutenberg does not work in your use case because your editor is not iframed. The post editor will be iframed if all registered blocks have a Block API version 3 or higher and the editor has no classic meta boxes below the blocks. This is the case in the Gutenberg test environment, but not in yours, because all the GatherPress blocks are using apiVersion 2. So if you are interacting with |
I know, sorry. But I didn't knew, what kind of screenshot would make sense.
This was (I guess) the holy-grail answer, I was looking for, for days now! Thank you, very much @swissspidy !!! |
This PR allows to run automated and manual end-to-end tests, while sharing the same and existing,
wp-env
based, setup.NEEDED, before merge
editor.canvas
easily.(Feature/e2e tests workflow #776 (comment))
Automated tests
Check the results of the e2e-tests action workflow at
https://github.com/GatherPress/gatherpress/actions/workflows/e2e-tests.yml
.Manual testing
node
installeddocker
runningRun Playwright in the background using
Run Playwright visually (and change what's happening) using
Run Tests independently AND visually using the Playwright VSCode extension
Description of the Change
Closes #
How to test the Change
Changelog Entry
Credits
Props @carstingaxion , @swissspidy
Checklist: