-
Notifications
You must be signed in to change notification settings - Fork 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
Add some Block Editor Tracking E2E tests #53733
Conversation
Link to Calypso live: https://calypso.live?image=registry.a8c.com/calypso/app:build-8496 |
This PR does not affect the size of JS and CSS bundles shipped to the user's browser. Generated by performance advisor bot at iscalypsofastyet.com. |
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.
This is looking pretty good to me. Just a minor Q about creating removeBlock
via selectors and timeouts vs. using the block editor store.
83f5e35
to
2959724
Compare
2959724
to
20f51cc
Compare
By.css( '.components-menu-group' ), | ||
this.explicitWaitMS / 5 | ||
); | ||
await this.driver.sleep( 1000 ); |
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.
Why the extra sleep here?
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.
This is a copy-paste from GutenbergEditorComponent#removeBlock
, but adapted to the site editor. The sleep
is not documented there either, so I'm not quite sure why it's required.
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.
Ah, OK. Anyway, a good approach is to verify if those mysterious sleeps
are actually necessary whenever bumped into one, especially when copypasting from somewhere else. This way we're not adding any unnecessary time to our E2Es.
Changes proposed in this Pull Request
Testing instructions
Related to #53410