-
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 'iframed masonry block' tests to Playwright #55016
Conversation
const masonry = editor.canvas.getByRole( 'document', { | ||
name: 'Block: Iframed Masonry Block', | ||
} ); | ||
await expect( masonry ).toBeVisible(); |
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've replaced the snapshot assertion with this. Do we need to assert the block's whole edit markup?
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 don't think we do. If we want anything tested then we should probably add the assertions below anyway.
Size Change: +929 B (0%) Total Size: 1.62 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.
Another nice one 👍
} ); | ||
await expect( masonry ).toBeVisible(); | ||
|
||
const masonryHeight = await masonry.evaluate( ( node ) => |
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.
Curious to know whether we can use boundingBox
here?
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.
Good idea! Updated in 9a66431.
What?
Part of #38851.
Closes #34773.
PR migrates 'iframed masonry block' tests to Playwright and simplifies it. Now that the editor loads in iframed by default, extra steps are unnecessary.
Why?
This is a part of general migration 🐦
Testing Instructions