# Ecommerce Test Cases: 60 Checks for the Places Online Stores Actually Break

> 60 ecommerce test cases for search, product pages, cart, promotions, checkout, shipping, payment, emails and multi-market stores, each with the expected result. Grouped by where stores broke in our November 2026 study of 72 shops.

Source: https://qa.tech/blog/ecommerce-test-cases · Published: 2026-11-30

---
<div class="qa-highlight">

Below are 60 test cases for an ecommerce website, grouped by area, each with the result you should expect. The ones marked ⚑ broke on at least one store in our November 2026 testing, either in [the 72-store Black Friday study](https://qa.tech/blog/black-friday-ecommerce-bugs) or a second batch the following week. Start with those, since 24 of the 72 stores (33%) had a confirmed bug in the cart, checkout, pricing or delivery.

</div>

Each case is written as a check and an expected result, so you can paste it into a test management tool, turn it into a script or hand it to an agent as a goal. Run the checkout sections at a mobile viewport as well as desktop. For many stores, most traffic is on phones. [Commerce-UI](https://commerce-ui.com/), a Shopify Plus agency, found that about half of the briefs it received with traffic by device showed most of it on mobile, some above 80%.

## Search and navigation

1. ⚑ **Search for a product by name.** Results include it, and the result count matches the results shown.
2. ⚑ **Search for nonsense ("zzqxwvv").** A clear "no results" state with suggestions, and no catalogue listing behind it.
3. **Search with a typo or a plural.** Sensible matches, or a "did you mean".
4. ⚑ **Sort by price, low to high and high to low.** The order is correct, including items on sale.
5. ⚑ **Apply a brand or size filter.** Only matching products remain, and the count updates.
6. ⚑ **Reload a filtered, sorted listing.** Filters and sort order survive.
7. ⚑ **Open campaign and category links from the homepage.** No 404s, no empty blocks.

## Product pages

8. **Select each variant (size, colour).** Price, image, stock and SKU update to match.
9. **Open an out-of-stock variant.** Add to cart is disabled or switches to a notify option.
10. ⚑ **Compare the product page price with the listing price.** Same price, same discount percentage.
11. ⚑ **Configure a product with paid options (frame, engraving, size in cm).** The surcharge is added to the price.
12. ⚑ **Enter an out-of-range custom value (width 99999 cm).** It's rejected with a message, and no price is shown for it.

## Cart

13. **Add one item.** The cart count, mini-cart and cart page all show it.
14. ⚑ **Change the quantity to 2.** Line price, subtotal and shipping update straight away, not on the next action.
15. ⚑ **Set quantity to 0, 999 and 9999.** Zero removes the line or is refused. Large numbers are capped to stock or a sensible limit, with a message.
16. ⚑ **Exceed a per-customer limit ("max 2").** The cart holds at most the limit, and the message matches what's in the cart.
17. **Remove an item and re-add it.** Totals are correct after each step.
18. ⚑ **Reload the cart page.** Same items, quantities and totals.
19. ⚑ **Compare the header cart count and mini-cart with the cart page.** They agree.
20. **Add an item that sells out while it's in the cart.** The shopper is told before checkout.
21. ⚑ **Try to add an item marked unavailable.** It can't reach checkout.
22. **Leave and return in a new session.** The cart is restored for logged-in shoppers, and behaves as designed for guests.

## Promotions and pricing

23. **Apply a valid discount code.** The discount shows in the cart and the total drops by the right amount.
24. ⚑ **Apply an advertised code from a banner or email.** It works, exactly as advertised.
25. ⚑ **Apply an invalid or expired code.** A clear message, and the total doesn't change.
26. **Apply two codes.** Stacking follows your rules, with a message if the second is refused.
27. ⚑ **Trigger a multi-buy offer ("buy 2, save 25%").** It applies only when the condition is met, and disappears when you drop below it.
28. ⚑ **Check the discount line against the total.** A listed discount is reflected in the total.
29. **Use a code that brings the total to zero.** Checkout still completes, or the shopper is told why not.
30. **Check gift cards and store credit.** The balance is applied and the remainder is charged correctly.

Pricing and discount bugs turned up on 7 of the 72 stores in our study, so the promotion engine deserves its own test plan.

## Checkout forms

31. ⚑ **Submit a valid local phone number with a space (07700 900482).** Accepted.
32. ⚑ **Submit an invalid postcode (00000, XXXX, two digits).** Rejected with a message.
33. ⚑ **Submit an invalid mobile number in guest checkout.** Rejected with a message.
34. **Leave a required field empty.** The error names the field and keeps the rest of the form.
35. **Use autofill.** Fields land in the right boxes.
36. ⚑ **Read every checkbox label.** No marketing opt-in is pre-ticked, and none is worded backwards.
37. **Go back from checkout to the cart and return.** The entered details are kept.

## Shipping and delivery

38. ⚑ **Build a cart just over the free-delivery threshold.** Delivery is free at checkout, as the banner says.
39. **Build a cart just under the threshold.** The charge matches the published rate.
40. ⚑ **Switch delivery method.** The total updates to the new price, and the old charge is gone.
41. ⚑ **Pick a delivery date offered in the calendar.** It can be saved.
42. ⚑ **Compare the delivery price in the cart, checkout and payment step.** Same price throughout.

## Payment

43. ⚑ **Reach the payment step.** Payment methods load, and the amount matches the checkout total.
44. **Pay with a sandbox card (staging).** The order is created and the confirmation page shows an order number.
45. **Use a declined card, then a valid one.** One order, not two.
46. **Pass, fail and abandon a 3D Secure challenge.** Each ends in a clear state.
47. **Double-click "Pay".** One charge.
48. **Use each payment method you offer**, including buy-now-pay-later with a denied applicant.

Card numbers and sandbox setup for each provider are in [how to test checkout payments](https://qa.tech/blog/how-to-test-checkout-payments).

## Emails after the cart

49. **Place a test order.** The confirmation email arrives with the right items, total and address.
50. ⚑ **Abandon a guest cart at the payment step with marketing consent.** An abandoned-cart email arrives when your flow says it should.
51. ⚑ **Read the abandoned-cart email.** Products, quantities, line totals and currency match the cart, and the links work.
52. **Abandon a cart without consent.** No marketing email arrives.

[We tested this on 24 stores](https://qa.tech/blog/abandoned-cart-email-testing). Four sent a reminder within 24 hours.

## Multi-market

53. ⚑ **Visit from another country.** The redirect or market prompt is correct, and it remembers the shopper's choice.
54. ⚑ **Check the currency in the mini-cart, cart and checkout.** One currency throughout.
55. **Check prices including VAT per market.** The right rate, shown the way that market expects.
56. ⚑ **Check address, postcode and phone validation per market.** Each market's formats are accepted, and others rejected.
57. **Read the checkout in each language.** No untranslated strings, no placeholder text.

More on this in [multi-market ecommerce testing](https://qa.tech/blog/multi-market-ecommerce-testing).

## Accounts and after the order

58. **Register during checkout.** The order is linked to the new account.
59. **Reset a password.** The email arrives, the link works once and expires.
60. **Start a return or cancel an order.** The status and refund amount are right.

## Turning the list into tests

Don't automate all 60 as scripts. Schedule the handful a store can't trade without, usually guest checkout, logged-in checkout, a discount code and a free-delivery threshold. Pull the rest in when a release touches their area, so a promotions change runs cases 23 to 30 and a new market runs 53 to 57. That's the idea behind [dynamic testing](https://qa.tech/blog/what-is-dynamic-testing), and it keeps the stored suite small enough to maintain.

For an agent, write each case as a goal with an expected result and leave the clicks out:

> **Goal:** As a guest shopper in Germany on a phone, add two of the same item, apply SAVE10 and continue to the payment step.
> **Expected result:** The cart, checkout and payment page show the same total, with 10% off, in euros, and delivery matches the threshold on the banner.

The agent works out the clicks, so the test survives a redesign. More on phrasing in [how to write test cases](https://qa.tech/blog/how-to-write-test-cases), and the full picture in [the ecommerce testing guide](https://qa.tech/blog/ecommerce-testing).

## Frequently asked questions

**What are the most important test cases for an ecommerce website?**
The ones that touch money: cart totals after quantity changes, the same price on the product page, cart and checkout, discount codes, free-delivery thresholds, checkout form validation and the payment step. In our November 2026 study, 24 of 72 stores (33%) had a confirmed bug in the cart, checkout, pricing or delivery.

**How many test cases does an ecommerce site need?**
Fewer stored ones than most teams think. Schedule a handful of journeys the store can't trade without, such as guest checkout, and pull in the rest when a release touches their area.

**What are negative test cases for an ecommerce website?**
Inputs a shopper or a script might try that the store should refuse or handle: quantity 0 or 9999, a quantity above a per-customer limit, an expired or made-up discount code, a postcode like 00000, a declined card, an out-of-stock item, a nonsense search.

**How do you write ecommerce test cases for a testing agent?**
Write the shopper's goal and the expected result, and let the agent work out the clicks. For example: as a guest in Germany, buy two of the same item with code SAVE10; the cart, checkout and payment page show the same total, with 10% off and euros throughout.

**Should ecommerce tests run on mobile?**
Yes, by default. For many stores, phones bring most of the traffic, so run the checkout journeys at a mobile viewport as well as desktop.
