.blastproof/tests/checkout.yamlYAML
summary: Checkout with discount
priority: P0
tags: [checkout, discount]
routes: ["/cart", "/checkout"]
steps:
- add the Trail Pack to the cart
- verify the cart total is $120.00
- go to checkout
- apply promo code SAVE20 and verify
the page confirms 20% off
- verify the discount line matches
20% of the cart total
blastproof run --impacted --base mainexample run
diff main…HEAD 1 file → /cart, /checkout
selected 1 of 5 tests
P0 Checkout with discount
✓ add the Trail Pack to the cart
✓ verify the cart total is $120.00
✓ go to checkout
✓ apply promo code SAVE20 and verify…
✗ verify the discount line matches 20%…
The page says SAVE20 gave 20% off, but the
discount shown is -$6.00. 20% of $120.00
would be -$24.00.
Score 0 exit 1