-
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
Fix flaky 'Switch to Draft' action in preview e2e tests #51564
Conversation
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 caught!
Flaky tests detected in 7a8e1b1. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5288071737
|
Related to my refactor I guess https://github.com/WordPress/gutenberg/pull/51524...where all the tests were green 🤦 |
What?
Fixes #37976.
PR fixes the flaky 'Switch to Draft' action in preview e2e tests.
Why?
The button was recently moved to the document settings sidebar (#50217), requiring it to be open before performing an action.
P.S. If the locator had been scoped to the region, we would have caught this bug earlier.
How?
Ensure the document settings sidebar is open, and add scope to the locator.
Testing Instructions