What would you test before closing this cart-total defect?

Instruction: Give a concrete confirmation test and a focused regression set, with exact expected results from the supplied fixture.

Context:

A fictional cart contains item A at $12.00 with quantity 2 and item B at $8.00 with quantity 1. There are no discounts, taxes, shipping charges or inventory constraints in this fixture. The subtotal is $32.00. The reported defect is that deleting item A removes its row but leaves the subtotal at $32.00. A candidate fix changes the shared cart-total recalculation used by deletion and quantity updates. The product contract says deletion removes the whole selected line, the updated cart persists after reload, an empty cart has a $0.00 subtotal, and checkout is disabled when empty.

Updated

Official answer available

Read the opening below, then unlock the full answer and practical guidance.

First I would repeat the original steps on the fixed build with the same cart. Deleting item A must leave item B, show an $8.00 subtotal and persist that state after reload...

Related Questions