Skip to content

feat: intentionally break checkout flow for QA benchmark#6879

Open
wenhaog7 wants to merge 1 commit into
reactioncommerce:trunkfrom
wenhaog7:demo-bad-commit
Open

feat: intentionally break checkout flow for QA benchmark#6879
wenhaog7 wants to merge 1 commit into
reactioncommerce:trunkfrom
wenhaog7:demo-bad-commit

Conversation

@wenhaog7

@wenhaog7 wenhaog7 commented Apr 7, 2026

Copy link
Copy Markdown

Summary

This PR intentionally introduces a regression in the cart flow for QA-agent benchmarking.

After this change, clicking Add to cart (or calling addCartItems) does not add items to the cart.
The mutation returns the existing cart state, so the UI appears to do nothing.

Why

We need a deterministic “bad commit” to validate that our UI testing agents can detect real user-facing regressions from code diffs.

What Changed

  • Updated packages/api-plugin-carts/src/mutations/addCartItems.js
  • Short-circuited add-to-cart behavior so cart contents are not updated
  • Existing cart is returned without item additions

Expected User Impact

  • Product page: Add to cart click has no effect
  • Cart badge/count does not increase
  • Cart content remains unchanged

Validation

  1. Start Reaction API + storefront locally
  2. Open storefront and click Add to cart
  3. Confirm cart stays unchanged
  4. Run ui-testing-agent diff-analyze against this commit to verify agent catches regression

Notes

  • This PR is for benchmark/demo only.
  • DO NOT MERGE into production branches.

@changeset-bot

changeset-bot Bot commented Apr 7, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: b385eef

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant