Skip to content
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

Conversation

Addison-Stavlo
Copy link
Contributor

@Addison-Stavlo Addison-Stavlo commented Aug 6, 2021

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

Related to #

@Addison-Stavlo Addison-Stavlo requested review from scinos, WunderBart and a team as code owners August 6, 2021 15:56
@matticbot matticbot added the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Aug 6, 2021
@Addison-Stavlo Addison-Stavlo requested review from fullofcaffeine and a team August 6, 2021 15:56
@Addison-Stavlo Addison-Stavlo self-assigned this Aug 6, 2021
@github-actions
Copy link

github-actions bot commented Aug 6, 2021

@matticbot
Copy link
Contributor

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.

Copy link
Contributor

@dpasque dpasque left a 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!

@Addison-Stavlo Addison-Stavlo added [Status] Needs e2e Testing horizon Run e2e tests against horizon env [Status] Needs e2e Testing Gutenberg Edge Run e2e tests with a special site that is running the latest Gutenberg plugin snapshot labels Aug 6, 2021
Copy link
Contributor

@jeyip jeyip left a 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

@Addison-Stavlo Addison-Stavlo merged commit 3550e5f into trunk Aug 6, 2021
@Addison-Stavlo Addison-Stavlo deleted the fix/site-editor-tracks-e2e-choose-existing-template-part-test branch August 6, 2021 19:55
@github-actions github-actions bot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Aug 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] Needs e2e Testing Gutenberg Edge Run e2e tests with a special site that is running the latest Gutenberg plugin snapshot [Status] Needs e2e Testing horizon Run e2e tests against horizon env
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants