-
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
Remove redundant calls to disable the Styles welcome guide #50871
Conversation
editor: async ( { page }, use ) => { | ||
await use( new Editor( { page } ) ); | ||
}, |
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.
The editor
is available by default; there's no need for a manul setup.
test.beforeEach( async ( { admin, editor } ) => { | ||
await admin.visitSiteEditor(); | ||
await editor.canvas.click( 'body' ); |
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.
@ramonjd, I wasn't able to run tests locally without this change. However, it's a common pattern, so I don't think there's a need for a separate PR.
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.
No worries, thanks for the heads up!
Size Change: 0 B Total Size: 1.4 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.
Nice! Thanks!
What?
A minor cleanup after #50852.
Why?
The Styles panel welcome guide is now correctly disabled when visiting the Site Editor, so there's no need for separate helper methods.
Testing Instructions
CI should be green.