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 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.
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, 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
- ⚑ Search for a product by name. Results include it, and the result count matches the results shown.
- ⚑ Search for nonsense ("zzqxwvv"). A clear "no results" state with suggestions, and no catalogue listing behind it.
- Search with a typo or a plural. Sensible matches, or a "did you mean".
- ⚑ Sort by price, low to high and high to low. The order is correct, including items on sale.
- ⚑ Apply a brand or size filter. Only matching products remain, and the count updates.
- ⚑ Reload a filtered, sorted listing. Filters and sort order survive.
- ⚑ Open campaign and category links from the homepage. No 404s, no empty blocks.
Product pages
- Select each variant (size, colour). Price, image, stock and SKU update to match.
- Open an out-of-stock variant. Add to cart is disabled or switches to a notify option.
- ⚑ Compare the product page price with the listing price. Same price, same discount percentage.
- ⚑ Configure a product with paid options (frame, engraving, size in cm). The surcharge is added to the price.
- ⚑ Enter an out-of-range custom value (width 99999 cm). It's rejected with a message, and no price is shown for it.
Cart
- Add one item. The cart count, mini-cart and cart page all show it.
- ⚑ Change the quantity to 2. Line price, subtotal and shipping update straight away, not on the next action.
- ⚑ 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.
- ⚑ Exceed a per-customer limit ("max 2"). The cart holds at most the limit, and the message matches what's in the cart.
- Remove an item and re-add it. Totals are correct after each step.
- ⚑ Reload the cart page. Same items, quantities and totals.
- ⚑ Compare the header cart count and mini-cart with the cart page. They agree.
- Add an item that sells out while it's in the cart. The shopper is told before checkout.
- ⚑ Try to add an item marked unavailable. It can't reach checkout.
- Leave and return in a new session. The cart is restored for logged-in shoppers, and behaves as designed for guests.
Promotions and pricing
- Apply a valid discount code. The discount shows in the cart and the total drops by the right amount.
- ⚑ Apply an advertised code from a banner or email. It works, exactly as advertised.
- ⚑ Apply an invalid or expired code. A clear message, and the total doesn't change.
- Apply two codes. Stacking follows your rules, with a message if the second is refused.
- ⚑ Trigger a multi-buy offer ("buy 2, save 25%"). It applies only when the condition is met, and disappears when you drop below it.
- ⚑ Check the discount line against the total. A listed discount is reflected in the total.
- Use a code that brings the total to zero. Checkout still completes, or the shopper is told why not.
- 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
- ⚑ Submit a valid local phone number with a space (07700 900482). Accepted.
- ⚑ Submit an invalid postcode (00000, XXXX, two digits). Rejected with a message.
- ⚑ Submit an invalid mobile number in guest checkout. Rejected with a message.
- Leave a required field empty. The error names the field and keeps the rest of the form.
- Use autofill. Fields land in the right boxes.
- ⚑ Read every checkbox label. No marketing opt-in is pre-ticked, and none is worded backwards.
- Go back from checkout to the cart and return. The entered details are kept.
Shipping and delivery
- ⚑ Build a cart just over the free-delivery threshold. Delivery is free at checkout, as the banner says.
- Build a cart just under the threshold. The charge matches the published rate.
- ⚑ Switch delivery method. The total updates to the new price, and the old charge is gone.
- ⚑ Pick a delivery date offered in the calendar. It can be saved.
- ⚑ Compare the delivery price in the cart, checkout and payment step. Same price throughout.
Payment
- ⚑ Reach the payment step. Payment methods load, and the amount matches the checkout total.
- Pay with a sandbox card (staging). The order is created and the confirmation page shows an order number.
- Use a declined card, then a valid one. One order, not two.
- Pass, fail and abandon a 3D Secure challenge. Each ends in a clear state.
- Double-click "Pay". One charge.
- 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.
Emails after the cart
- Place a test order. The confirmation email arrives with the right items, total and address.
- ⚑ Abandon a guest cart at the payment step with marketing consent. An abandoned-cart email arrives when your flow says it should.
- ⚑ Read the abandoned-cart email. Products, quantities, line totals and currency match the cart, and the links work.
- Abandon a cart without consent. No marketing email arrives.
We tested this on 24 stores. Four sent a reminder within 24 hours.
Multi-market
- ⚑ Visit from another country. The redirect or market prompt is correct, and it remembers the shopper's choice.
- ⚑ Check the currency in the mini-cart, cart and checkout. One currency throughout.
- Check prices including VAT per market. The right rate, shown the way that market expects.
- ⚑ Check address, postcode and phone validation per market. Each market's formats are accepted, and others rejected.
- Read the checkout in each language. No untranslated strings, no placeholder text.
More on this in multi-market ecommerce testing.
Accounts and after the order
- Register during checkout. The order is linked to the new account.
- Reset a password. The email arrives, the link works once and expires.
- 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, 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, and the full picture in the ecommerce testing guide.
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.
