QA & testing · · 9 min read
The QA checklist for checkout forms: every field that costs you a sale if it breaks
A checkout form isn't one form — it's six small forms stitched together, each with its own validation logic, its own way of failing silently, and its own cost when it does. Here's what to test in each one, field by field.
- Card, expiry, CVV — live inside a cross-origin payment iframe; no automation can reach them, test with a real test-card number by hand.
- Address fields — country-conditional layout is where most real bugs hide, not the individual text inputs.
- Promo code — should debounce and hit a real backend, not validate on every keystroke against a hard-coded list.
- Payment method selector — usually a custom tab/radio group with no native form control, needs a real click to switch.
- Quantity steppers & terms checkbox — check that the stepper's buttons update the same state the input reflects, and that "Pay" stays disabled until terms is checked.
Six field groups, one page. Jump to any of them, or read straight through:
The short version: most checkout QA effort goes into the fields that are easiest to see — name, email, the big "Pay" button. The fields that actually cause abandoned carts and support tickets are the ones with conditional logic behind them: an address layout that changes per country, a promo field that races its own network request, a payment tab that swaps out the entire lower half of the form. Here's what to check in each.
1. Card number, expiry, and CVV
Start with the one honest limitation on this entire list: these three fields are almost never real, same-origin form inputs. Stripe Elements, Braintree Hosted Fields, Adyen's Drop-in, and PayPal's card fields all render the actual input as an <iframe> pointed at the payment processor's own origin — deliberately, so that a merchant's own (potentially compromised) JavaScript never touches raw card data at all. That's a security feature, and it applies to every automation tool equally, not just form fillers: a same-origin policy is a browser-level rule, not something any extension can request an exception to.
If you're testing a checkout and the card fields never fill, that isn't a bug in your test tooling — check document.querySelectorAll('iframe') in DevTools and you'll almost always find one sitting right on top of the card inputs. Type a processor test-card number by hand; there's no workaround.
What you can still automate around this: everything else on the payment step. Name-on-card, the "save this card for next time" checkbox, and — critically — what happens when the iframe itself reports a decline (test with the processor's dedicated decline-simulation card numbers, which every major processor publishes for exactly this purpose).
2. Shipping and billing address
The individual inputs here — street, city, postal code — are rarely the problem. The problem is that most checkout forms hard-code an address shape that only matches one country. A "State" field that's a dropdown of 50 US states breaks the moment a UK or German address needs it to be free text (counties aren't a fixed enumerable list). A postal-code regex written for 5-digit US ZIPs rejects a valid Canadian A1A 1A1 or a UK SW1A 1AA outright.
Test with at least three real address shapes, not just your own country's: one with a free-text region instead of a state dropdown, one with an alphanumeric postal code, and one where the field order itself differs (city-before-region is standard in several countries). Also test the "billing same as shipping" checkbox specifically — it's usually wired to copy values into hidden fields that still need to pass the same validation, and that copy step is a common place for stale or mismatched data to sneak through unnoticed.
3. Promo / discount code
A promo field looks trivial and is a surprisingly common source of two specific bugs. First: validating on every keystroke instead of debouncing (or gating behind an explicit "Apply" click) — this either spams the backend with a request per character or, worse, lets an earlier keystroke's slow response arrive after a later one and silently overwrite a valid result with a stale "invalid code" error. Second: client-side-only validation against a hard-coded list of known codes, which inevitably drifts out of sync with whatever the backend actually accepts the moment marketing launches a new promo without a matching frontend deploy.
Test the field empty (does "Apply" stay disabled, or does it hit the network with nothing?), with a code that's valid but expired, and with two codes applied in sequence — does the second one correctly replace the first in both the UI and the actual order total, or do they silently stack?
4. Payment method selector
Card / PayPal / Apple Pay tabs, or a dropdown of previously-saved cards, are almost always a custom component with no underlying native radio group — which means the same rule applies here as to any custom dropdown: there's no value to set programmatically, the only working interaction is a real click on the option itself. The part that's easy to miss in manual testing: switching payment methods usually swaps out an entire sub-form underneath (the card iframe disappears, a PayPal-redirect notice appears instead), and that swap needs to correctly tear down whatever validation state the previous method had set, not leave a stale "card number required" error blocking a customer who just switched to PayPal.
5. Quantity steppers and the terms checkbox
A quantity stepper is two +/- buttons and a number input that all need to agree with each other and with the order total. The bug to specifically check for: does clicking the stepper buttons update the same piece of state the input displays (and that the total is computed from), or do the buttons and the input write to two different variables that only happen to look synced until one of them is used past the other's bounds?
The terms-and-conditions checkbox is simple in isolation — the same native-setter rule as any other checkbox — but it's worth explicitly testing as a submit gate: does the "Pay" button stay genuinely disabled (not just visually greyed out with the click handler still live) until it's checked, and does unchecking it after checking re-disable the button correctly?
The general approach, for any checkout you haven't tested before
New checkout implementations show up constantly — a new payment processor, a new cart platform, a custom-built flow. This four-step process works for orienting yourself in any of them:
document.querySelectorAll('iframe') in DevTools. Anything inside one of those needs manual entry with a test card number — don't waste time debugging why an automated fill "isn't working" on a field that was never reachable to begin with.Common misconceptions
Further reading
- React, Vue, and Angular form fields that break your tests — the fix for the custom dropdowns and checkbox groups that show up throughout a checkout form.
- A practical checklist for testing multilingual forms — the broader localization checklist that address-shape bugs belong to.
FAQ
Auto Fill Fake Data fills every ordinary field on a checkout form in one click — name, address, phone, quantity, checkboxes, and country-conditional layouts — leaving only the card iframe for you to type by hand.
Install free — Chrome Web Store