Skip to the editor

Removing an item has to remove it

State across pages · level 2 of 5 · Terra Supply

Deleting is the easiest behaviour to fake: do nothing, and a careless test never notices.

The problem

Add one product, open the cart, remove it, and prove the cart is genuinely empty.

Your test must fail if the remove button silently does nothing.

Done when

  • Removing the last cart item leaves the cart empty.

Bugs we plant

  • Removing a cart item does nothing

We break each one in a copy of the app. Your test has to fail on every copy.

Loading the editor…