-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 'invalid blocks' e2e tests to Playwright #57508
Conversation
Size Change: 0 B Total Size: 1.69 MB ℹ️ View Unchanged
|
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.
Great work as always. LGTM 👍
await expect( | ||
page | ||
.getByRole( 'dialog', { name: 'Resolve Block' } ) | ||
.locator( '.block-editor-block-compare__html' ) |
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.
I guess we can just omit this class name selector as this doesn't provide any helpful accessible query?
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.
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.
I see!
Would toContainText
work?
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.
Same problem with toContainText
. Considering that tests assert resolution diff, I think it's okay to use class name locator.
What?
Part of #38851.
PR migrates
invalid-block.test.js
e2e tests to Playwright.Why?
See #38851.
Testing Instructions