-
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
Try to fix flaky customizer inspector test #33890
Conversation
Size Change: 0 B Total Size: 1.08 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.
I'm fine with this for now
like you said, ideally all animations should be disabled in tests. the disable-css-animations plugins is supposed to do this for CSS transitions and animations, not sure why it doesn't work here?
We disabled the plugin for the tests to work. See #32024 for more info. We do plan to fix that though in the future, but it's related to core so a bit more complicated to fix. |
I just got the same failure on trunk https://github.com/WordPress/gutenberg/runs/3281574200. |
Description
Alternative to #33875, part of #33275.
During closing the inspector and going back to the editor, the transition is making the blocks positioning in an intermediate state. Since the toolbar is still opened, it could sometimes also be positioned in the wrong place according to intermediate state of the block.
This PR waits for the transition to finish (200ms). A better alternative could be:
How has this been tested?
Not yet found a reliable way to reproduce the issue, so maybe we just have to merge this and monitor it on trunk.
Types of changes
Bug fix
Checklist:
*.native.js
files for terms that need renaming or removal).