E-commercePaymentsE2E

How do you test promotions and discount codes with AI?

Write the offer as a shopper's goal with the price you expect, for example "as a guest in Germany, buy two of the same jacket with code SAVE10 and reach payment; the total is 10% lower and in euros". The agent applies the code or triggers the offer, reads the total at every step and fails the test where the discount doesn't reach it. In our November 2026 test of 72 European online stores, 7 had a confirmed price or discount mismatch and 5 charged delivery on an order that met their free-delivery threshold.

Sub-use-cases

Covers Valid and invalid codes, automatic and tiered offers, stacking rules, minimum spend, free-delivery thresholds and campaign pages and banners.

  1. 01

    What promotion testing should cover

    Codes that should work and codes that shouldn't: expired, made up, below the minimum spend or used twice. Automatic and tiered offers like "25% off from two items", stacking rules between codes and sale prices, free-delivery thresholds against the delivery line at checkout, and the campaign pages and banners that promise the offer.

  2. 02

    How does AI test a promotion?

    The agent goes through the promotion as a shopper would, from the campaign page to the payment step, and checks the discount line and the total on each page. Run the same goal once per market with a device preset that browses from that country, because an offer set up for one currency is often missing or wrong in another. Put the expected numbers in the goal, since the agent checks the screen against them and knows nothing of your promotion engine's rules.

  3. 03

    When to test promotions

    Before every campaign goes live, on every change to the promotion engine or pricing code, and on a schedule while the campaign runs. Offers change more often than any other part of a store, so a large scripted suite of discount cases goes out of date quickly. Test the offers that are live now and the ones about to go live.

  4. 04

    Who needs promotion testing

    Retailers that run frequent campaigns, tiered or bundle offers, or different promotions per market, and teams whose promotion logic lives in custom code or a separate promotion service.

  5. 05

    How QA.tech helps

    A promotion bug looks correct on the page that shows it. One store we tested displayed a product discount of −382 € while the order total stayed at 379,98 €. Another promised free delivery over £80 and charged £10.99 on a £98 basket. The agents read the number the shopper pays, the total at checkout, so cases like these fail.

FAQ

Common questions

Can the agent test a discount code that should fail?
Yes. Give the code and the expected outcome, such as an error message and an unchanged total. The test fails if the store accepts the code.
Can it test automatic promotions with no code?
Yes. Describe the condition, such as buying two items, and the price you expect. The agent builds the basket and checks the total on every step.
Why test free-delivery thresholds?
Because unexpected costs at checkout are the top reason shoppers abandon: 40% of shoppers in Baymard Institute's research left over extra costs such as delivery.

Related use cases

← Previous

Product Page & Variant Testing

Next →

Pull Request & CI/CD Testing

Your team moves fast. Can your testing keep up?

Our QA agents test your product autonomously, so moving fast never means shipping broken. Start free or get a 30-minute demo.