-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Migrate missing block tests to Playwright #41680
Conversation
const block = window.wp.blocks.parse( | ||
`<!-- wp:non-existing-block-here --><img src onerror=alert(1)>` | ||
); | ||
window.wp.data.dispatch( 'core/block-editor' ).resetBlocks( block ); |
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.
Originally, setPostContent
from e2e-test-utils
was used.
However, since this utility is used infrequently, I didn't migrate this utility and rewritten to a similar process.
Size Change: 0 B Total Size: 1.25 MB ℹ️ View Unchanged
|
The unit test fails, but should pass if #41675 is merged. |
078d9eb
to
a382219
Compare
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.
Nice work!
What?
Part of #38851. Migrate
missing.test.js
to Playwright.Why?
See this post for an overview of the migration.
How?
By following the migration guide.
Testing Instructions