---
title: "Shopping cart QA recipes"
description: "Check item identity, quantity limits, cart persistence and pricing changes with seeded products and independently calculated totals."
canonical_url: "https://vostride.com/agent-library/shopping-cart.md"
md_url: "https://vostride.com/agent-library/shopping-cart.md"
content_kind: "index"
topic: "shopping-cart"
---

# Shopping cart QA recipes

Check item identity, quantity limits, cart persistence and pricing changes with seeded products and independently calculated totals.

Seed known inventory and pricing. A correct item count can conceal the wrong variant or a stale subtotal, so assert identifiers and amounts together.

## Pages (10)

- [Verify adding a selected product variant creates the correct cart line](https://vostride.com/agent-library/shopping-cart/add-variant-correct-line.md): Choose a specific size and color, add it to a test cart, and verify variant identity, price, imagery, and persistence instead of relying on product title alone.
- [Verify an account cart survives navigation and a fresh signed-in visit](https://vostride.com/agent-library/shopping-cart/cart-persistence-revisit.md): Create a test account cart, leave the shopping flow, then revisit in a separate authenticated run and compare durable items, quantities, and pricing policy.
- [Verify applying and removing a valid coupon recalculates the cart](https://vostride.com/agent-library/shopping-cart/coupon-apply-remove.md): Apply a controlled discount, inspect eligibility and arithmetic, then remove it and verify the original payable total and persistent coupon state return.
- [Verify coupon eligibility responds to cart threshold changes](https://vostride.com/agent-library/shopping-cart/coupon-minimum-threshold.md): Apply a minimum-spend coupon, reduce eligible items below its threshold, and verify the cart removes or rejects the discount according to policy.
- [Verify signing in merges guest and account carts according to policy](https://vostride.com/agent-library/shopping-cart/guest-login-cart-merge.md): Prepare distinct guest and account carts, sign in through the shopping flow, and verify item preservation, duplicate handling, quantities, and final ownership.
- [Verify cart quantity changes update line and order totals](https://vostride.com/agent-library/shopping-cart/quantity-update-totals.md): Increase and decrease a cart quantity, checking independent arithmetic, persisted quantity, and any quantity-based adjustment rules after each change.
- [Verify removing the last cart item produces a durable empty state](https://vostride.com/agent-library/shopping-cart/remove-final-item-empty-state.md): Remove the final item from a test cart and check totals, checkout availability, navigation badge, reload behavior, and absence of a lingering server line.
- [Verify saving an item for later removes it from the payable cart](https://vostride.com/agent-library/shopping-cart/save-for-later-round-trip.md): Move one product into a saved list and back, checking cart totals, saved quantity rules, duplicate handling, and persistence across reload.
- [Verify cart quantity controls enforce the available-stock cap](https://vostride.com/agent-library/shopping-cart/stock-cap-quantity.md): Attempt to exceed a controlled product stock limit and verify visible feedback, persisted quantity, totals, and the behavior after stock becomes available.
- [Verify a cart explains a product made unavailable before revisit](https://vostride.com/agent-library/shopping-cart/unavailable-item-return.md): Unpublish a fixture product after it enters a cart and verify returning shoppers see a clear unavailable state and can remove it without blocking other items.

## Apply a recipe

These are test designs to adapt to an application's acceptance criteria and fixtures. They are not recorded runs or a claim that a listed application has been tested. Use the [recipe execution guide](https://vostride.com/agent-library/software-factory/turn-a-recipe-into-an-agent-qa-test.md) to author, validate, run and inspect a test.

[All topics](https://vostride.com/agent-library.md)
