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
|
kevin940726
left a comment
There was a problem hiding this comment.
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