-
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 template part test to playwright #41048
Conversation
@@ -59,6 +59,6 @@ export class Editor { | |||
openDocumentSettingsSidebar = openDocumentSettingsSidebar; | |||
openPreviewPage = openPreviewPage; | |||
saveSiteEditorEntities = saveSiteEditorEntities; | |||
selectBlockByClientId = selectBlockByClientId; | |||
selectBlocks = selectBlocks; |
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 think I accidentally introduced selectBlockByClientId
in #40815.
I've changed it here so it can multiselect, and the way it used clientIds wasn't very useful, so now uses locators.
Size Change: -423 B (0%) Total Size: 1.24 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.
Awesome job! I'll update some of the nitpicks I discovered.
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 think this is good enough! Couldn't spot anything that's blocking us to merge this. Awesome work as always 👍
{ has: paragraphBlock2 } | ||
); | ||
|
||
// TODO: I couldn't find an easy way to assert that the same template |
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 think this is good enough. We probably can do better but I don't think that matters that much 😛.
What?
Part of #38851
Migrates the template part tests to playwright.
How?
The original tests have been rewritten substantially, so it may be hard to compare old to new.
I felt the original tests tried to do too much, and that's probably why they're one of the more flakier set of tests, so I've tried to simplify things as much as possible.