Debugging problems

Repair the test · Level 5

Cart and checkout agree on the wrong total

Open the saved cart. Its subtotal matches the checkout button. A shopper adds up the items and gets a different amount. The test still passes.

What you will practise

Two screens can show the same wrong number. Use the original inputs to work out what the number should be.

Done when

  • Open the saved cart and add one more Trail Runner Backpack.
  • Calculate the total from each unit price and quantity. Check the cart and checkout amounts.

Read the brief here. Use a computer with a keyboard to write and run tests.

$19 per month

This problem, 16 more like it, 175 lessons and 10 AI interviews a month.