Skip to lesson
Exit
Browser verification with page evidence1 / 1

2 min lesson

Verify a cart total in Browser

Run one exact browser path, inspect its page and runtime evidence, then capture the final state.

Check your understanding

Complete the practice "Verify a coupon flow in Browser".

Outcome: The page shows $45.00, the coupon request returns 200 and no new console error appears. The final screenshot includes the applied coupon and total.

Verify a coupon flow in Browser
Page, console, network and screenshot
SayThe coupon field passes typecheck, but nobody has run it. Open http://localhost:3000/cart, apply SAVE10 and verify that the total changes from $50.00 to $45.00.
TypeOpen the cart, enter SAVE10 and click Apply.
DoLet Agent run the flow, then inspect the changed page, console and coupon request.
SeePOST /api/coupon returns 200, but the console reports 'discount.toFixed is not a function' and the total stays at $50.00.
SayThe response contains the string '5'. Parse the amount at the API boundary, leave the layout alone and repeat the same path.
DoReview the one-line parsing fix, then apply SAVE10 again with the same cart data.
SeeThe page shows $45.00, the coupon request returns 200 and no new console error appears. The final screenshot includes the applied coupon and total.
Learn more

Optional practice

Test yourself on Verify a cart total in Browser

QWhich result proves the browser flow is ready for review?

Finish the check to continue.