Open gkpty opened 4 months ago
A shopping cart without a owner should be able to be created by an admin. When the admin sends this cart to a user, the user can claim the cart.
When a user claims the cart (accepts) this makes his existing cart inactive, and makes the new claimed cart active and adds his lead_id.
it must ask user for a confirmation before replacing the cart
claimCart: set the current cart inactive, then set the leadId on the new cart, then reroute to /cart
tests cases:
A shopping cart without a owner should be able to be created by an admin. When the admin sends this cart to a user, the user can claim the cart.
When a user claims the cart (accepts) this makes his existing cart inactive, and makes the new claimed cart active and adds his lead_id.
it must ask user for a confirmation before replacing the cart
claimCart: set the current cart inactive, then set the leadId on the new cart, then reroute to /cart