-
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
Fix flaky Site Editor title e2e tests #49203
Conversation
If we're okay with this fix, I will apply the same method to The recent causes of failure look related - https://github.com/WordPress/gutenberg/issues?q=is%3Aissue+is%3Aopen+test%2Fe2e%2Fspecs%2Fsite-editor%2Ftemplate-part.spec.js. |
Size Change: 0 B Total Size: 1.34 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.
Makes sense to me, thanks!
There might be more bugs in the canvas that we can look into separately. For instance, clicking on the bottom half of the canvas will not enter the edit mode if the template part is not full size.
I'm not a fan of using We should have a separate test confirming that clicking on the |
Yeah, I'm not a fan of that either. I mentioned it in the original PR: #47777 (comment). |
What?
See #49019.
PR tries to fix flaky Site Editor title e2e tests by using a URL query argument for entering the edit mode. The test always fails for me when running locally on
trunk
.Why?
The
editor.canvas.click( 'body' )
turned out to be a flaky method for activating the edit mode. However, we can also force canvas mode since we're already using a URL query argument for selecting templates and template parts.See failure artifacts - https://github.com/WordPress/gutenberg/actions/runs/4467473720.
Testing Instructions
Screenshots or screencast
video.webm