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
Use viewScriptModule block.json field for interactivity e2e tests #59705
Use viewScriptModule block.json field for interactivity e2e tests #59705
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
This comment was marked as resolved.
This comment was marked as resolved.
I think I've fixed or ignored the lints correctly. |
packages/e2e-tests/plugins/interactive-blocks/directive-bind/view.asset.php
Show resolved
Hide resolved
Nice refactoring, I don't know the codebase so I will leave the approval to more experienced folks 👍🏻 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This refactor is neat. Thank you, @sirreal! 👏
c7bad45
to
d7329fd
Compare
…rdPress#59705) The interactivity end-to-end test blocks were manually registering and enqueuing view modules. They also erroneously included (unregistered) viewScript handles. viewScriptModule is a clean and simple way to handle registration and enqueue for these assets.
What?
Use viewScriptModule to for assets in the interactivity end-to-end test plugin.
Why?
The interactivity end-to-end test blocks were manually registering and enqueuing view modules.
They also erroneously included (unregistered) viewScript handles.
viewScriptModule is a clean and simple way to handle registration and enqueue for these assets.
How?
"viewScript": "…"
to `"viewScriptModule": "file:./view.js"view.asset.php
files.render.php
files.Testing Instructions
The e2e tests should continue to pass.