-
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
Site Editor tracking e2e - Fix broken template part test #55247
Site Editor tracking e2e - Fix broken template part test #55247
Conversation
Link to Calypso live: https://calypso.live?image=registry.a8c.com/calypso/app:build-12368 |
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.
Tests are passing in CI, and the change looks great!
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.
Testing
Requirements
-
test/e2e/specs/specs-wpcom/wp-calypso-gutenberg-site-editor-tracking-spec.js
passes
Browsers
N/A
Notes
Tracks "wpcom_pattern_inserted" through sidebar
was somewhat flaky
Changes proposed in this Pull Request
Due to a change in our Header patterns combined with a bug in core causing an undo trap (related WordPress/gutenberg#33908), the "choose existing" template part test is now failing since it relied on the 'undo' action to get to its starting state.
Here, the simple fix is to just insert a new Header block instead of relying on undo.
Update - I found a later test failing due to the selector for the search input changing. We update that selector to the new class name as well.
Testing instructions
addBlock
actions will fail.Related to #