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

Fix related products E2Es for WC9.5 #481

Merged
merged 5 commits into from
Dec 18, 2024
Merged

Conversation

tomalec
Copy link
Member

@tomalec tomalec commented Dec 16, 2024

Changes proposed in this Pull Request:

This PR adjusts E2E tests for WC 9.5 changes.

In WC 9.5, by default, there is no related products section on a single product page - I made the test skip in such a case.
Also, I added a "related" tag to all simple products to make sure simple products will appear in the related products section instead of "Cat teasers" - without the "Add to cart" button.

Screenshots:

image

Detailed test instructions:

  1. Run E2E tests locally
  2. Run E2E workflow with 9.5.0-rc.1 - https://github.com/woocommerce/woocommerce-google-analytics-integration/actions/runs/12362867871
  3. Run E2E workflow with 9.4.0 - https://github.com/woocommerce/woocommerce-google-analytics-integration/actions/runs/12383008805
  4. Review the code to check the tests are testing what they should

Additional details:

  • I'll make a separate PR with a proposal to simplify and DRY a bit our create*Pages

Changelog entry

Dev - Improve E2E tests for related products.

@github-actions github-actions bot added the changelog: dev Developer-facing only change. label Dec 16, 2024
@tomalec tomalec requested a review from a team December 16, 2024 23:39
@eason9487
Copy link
Member

3. Run E2E workflow with 9.4.0 - https://github.com/woocommerce/woocommerce-google-analytics-integration/actions/runs/12363338232

This run didn't pass. I got the same failure in a local run.

@tomalec
Copy link
Member Author

tomalec commented Dec 17, 2024

Thanks. I forgot to migrate the adjusted selector. Now, the run is passing https://github.com/woocommerce/woocommerce-google-analytics-integration/actions/runs/12383008805

Copy link
Member

@eason9487 eason9487 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the compatibility fix! LGTM.

tests/e2e/utils/create-page.js Outdated Show resolved Hide resolved
@eason9487
Copy link
Member

Hi @tomalec, I will address #481 (comment) and merge this PR to make the later release process a bit smoother.

@eason9487 eason9487 merged commit 69d8747 into trunk Dec 18, 2024
1 check passed
@eason9487 eason9487 deleted the dev/fix-e2e-add-to-cart branch December 18, 2024 09:20
@eason9487 eason9487 mentioned this pull request Dec 18, 2024
20 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: dev Developer-facing only change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants