Skip to content

@W-18992617@ - Revert test product changes for e2e tests#2761

Merged
shethj merged 12 commits intodevelopfrom
testfix/revert-test-product
Jul 15, 2025
Merged

@W-18992617@ - Revert test product changes for e2e tests#2761
shethj merged 12 commits intodevelopfrom
testfix/revert-test-product

Conversation

@shethj
Copy link
Contributor

@shethj shethj commented Jul 9, 2025

Description

With BOPIS changes and generator changes merged into develop we started seeing test failures stating the product e2e tests were looking for no longer exists. Assuming some code change modified sort order and the previous test product no-longer renders on the first page we merged a code change to use a different product in #2716

Turns out the product wasn't found because of a bug in the generator that ignored any config passed in via the questions and always generated a retail app pointing to the default BM instance in the monorepo. That is why the tests couldn't find the product.

The generator issue has been fixed and merged: #2751

So this PR reverts the test product changes to continue using the one configured in the CI instance.

Types of Changes

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Documentation update
  • Breaking change (could cause existing functionality to not work as expected)
  • Other changes (non-breaking changes that does not fit any of the above)

Breaking changes include:

  • Removing a public function or component or prop
  • Adding a required argument to a function
  • Changing the data type of a function parameter or return value
  • Adding a new peer dependency to package.json

Changes

  • (change1)

How to Test-Drive This PR

  • (step1)

Checklists

General

  • Changes are covered by test cases
  • CHANGELOG.md updated with a short description of changes (not required for documentation updates)

Accessibility Compliance

You must check off all items in one of the follow two lists:

  • There are no changes to UI

or...

Localization

  • Changes include a UI text update in the Retail React App (which requires translation)

@shethj shethj requested a review from a team as a code owner July 9, 2025 01:37
@shethj shethj added the skip changelog Skip the "Changelog Check" GitHub Actions step even if the Changelog.md files are not updated label Jul 9, 2025
@cc-prodsec
Copy link
Collaborator

cc-prodsec commented Jul 9, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

license/snyk check is complete. No issues have been found. (View Details)

"failureSummary": "Fix any of the following:\n Some page content is not contained by landmarks",
"target": [
"#popover-trigger-\\:R1l4lb9rlbpH1\\: > .css-1igwmid.chakra-stack > .chakra-input__group.css-1y0e7gb > .css-va76oz"
"#popover-trigger-\\:rh\\:"
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice! 👍

"nodes": [
{
"html": "<a class=\"...\" aria-label=\"Back to cart, number of items: 2\" href=\"/global/en-GB/cart\">",
"html": "<a class=\"...\" aria-label=\"Back to cart, number of items: 2\" href=\"/cart\">",
Copy link
Contributor

Choose a reason for hiding this comment

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

is this correct? No multisite?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah. The generated app has site and locale in config/default.js both set to none and no siteAliases defined. That's just a monorepo thing. So when the previous PR updated snapshots, it probably did it against the buggy generator which was ignoring generator templates and falling back to use the monorepo defaults.

Screenshot 2025-07-14 at 5 52 38 PM

"failureSummary": "Fix any of the following:\n Some page content is not contained by landmarks",
"target": [
".chakra-portal:nth-child(10)"
]
Copy link
Contributor

Choose a reason for hiding this comment

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

This is new issue?

Copy link
Contributor

Choose a reason for hiding this comment

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

We got rid of one and added new one

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was a false update. Apparently when I last updated the snapshot there were still some other things broken.
Now all other tests pass and I updated the snapshot again and exactly this change reverted back.
So we should be good to go. Thanks for catching this.

alexvuong
alexvuong previously approved these changes Jul 14, 2025
@shethj shethj merged commit 9626b15 into develop Jul 15, 2025
36 checks passed
@shethj shethj deleted the testfix/revert-test-product branch July 16, 2025 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip changelog Skip the "Changelog Check" GitHub Actions step even if the Changelog.md files are not updated

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants