Back To Blogs

E-commerce Testing Checklist: How to Test a Cart and Checkout

Online stores are a great place to learn testing, and a risky place to ship bugs: errors in carts and checkouts cost money directly. This checklist covers the areas where e-commerce bugs appear again and again.

  • Search returns products matching the query, not just everything
  • Multi-word queries, partial words and different capitalisation behave sensibly
  • No-results searches show a helpful empty state
  • Filters and sorting work together (filter by category, then sort by price)
  • Prices, stock status and images match on the listing and detail pages
  • Special characters in search (&, quotes, emoji) don't break the page

Common bug: search that ignores the query or only matches the first word.

2. Cart

  • Adding the same product twice increases the quantity (or adds a line, per spec)
  • Totals recalculate after every change: add, remove, change quantity, apply a coupon
  • Quantity accepts only valid values: test 0, -1, 1, max, max + 1, decimals and letters
  • Removing the last item shows an empty cart and a zero total
  • The cart survives a page refresh and, if specified, signing in
  • The cart badge count matches the cart contents

Common bugs: a stale total after removing an item; negative quantities producing negative totals.

3. Coupons and discounts

  • A valid coupon applies the correct discount
  • The same coupon can't be applied twice
  • Combining different coupons follows the rules (stackable or not)
  • Invalid, expired and case-variant codes behave as specified
  • Minimum-spend thresholds: test just below and exactly at the threshold
  • Removing an item that qualified the cart for a coupon re-checks the coupon
  • Discounts never make a total negative

Common bug: coupon stacking, where re-applying the same code doubles the discount.

4. Checkout form

  • Required fields (name, address, city, postcode) are really required, on the server too
  • Whitespace-only values are rejected
  • Error messages appear next to the right field and are announced to screen readers
  • Long names, apostrophes and accented characters are accepted (O'Neil, Zoë)
  • Postcode and phone formats for the countries you support
  • Going back from payment keeps the entered data

Common bug: client-side validation only, so an order goes through with no address if the request is sent directly or the form is submitted unusually.

5. Placing the order

  • Double-clicking "Place order" creates one order, not two
  • Refreshing the confirmation page doesn't create a duplicate
  • Submitting with an empty cart is blocked
  • The order total equals the cart total at the moment of purchase
  • The cart is emptied after a successful order
  • A confirmation (page and email) shows the correct items, address and totals

Common bug: a duplicate order on double submit, the classic idempotency problem.

6. Order history and accounts

  • Orders appear in history with the correct status and totals
  • A user can't see another user's orders by changing the ID in the URL
  • Registration validates email format (john@ must be rejected)
  • Passwords follow the stated rules; errors are clear
  • Sign out really ends the session

Common bugs: malformed emails accepted; insecure direct object references (IDOR) on order pages.

7. Cross-cutting checks

  • Mobile: the cart and checkout at 375–414px wide; sticky buttons don't hide fields
  • Accessibility: keyboard-only checkout, visible focus, labelled fields
  • Performance: the cart page under a slow 3G profile
  • Security: prices can't be changed from the client; coupon codes are rate limited

How to use this checklist

Don't run it top to bottom every time. Use it to:

  1. Plan exploratory sessions: pick one section per session
  2. Pick regression tests to automate: totals, coupons and double submit are top candidates
  3. Review new features: ask which items the change could affect

Try it on a real store

Our ShopLab store in QAUnlocked Practice Labs has planted defects in exactly these areas: cart totals, quantities, coupons, checkout validation, duplicate orders, search and registration. Start with Cart basics, then Coupons & checkout, and finish with the expert Release readiness lab, where a random set of bugs is planted each time.

e-commerce testingcheckoutchecklistweb testing

Comments

0 Comments

Be the first to comment.