Tell us what’s happening:
Describe your issue in detail here.
Problem with Test Descriptions: I understand there are 5 test use cases and some of them seem to overlap/duplicate. I’m really confused on which test should pass.
for the case of price $19.5 and cash value is $20:
#6: When price
is 19.5
, the value in the #cash
element is 20
, cid
is [["PENNY", 1.01], ["NICKEL", 2.05], ["DIME", 3.1], ["QUARTER", 4.25], ["ONE", 90], ["FIVE", 55], ["TEN", 20], ["TWENTY", 60], ["ONE HUNDRED", 100]]
, and the #purchase-btn
element is clicked, the value in the #change-due
element should be Status: OPEN QUARTER: $0.5
#8 (also duplicated into #9): When price
is 19.5
, the value in the #cash
element is 20
, cid
is [["PENNY", 0.01], ["NICKEL", 0], ["DIME", 0], ["QUARTER", 0], ["ONE", 0], ["FIVE", 0], ["TEN", 0], ["TWENTY", 0], ["ONE HUNDRED", 0]]
, and the #purchase-btn
element is clicked, the value in the #change-due
element should be Status: INSUFFICIENT_FUNDS
#10: When price
is 19.5
, the value in the #cash
element is 20
, cid
is [["PENNY", 0.5], ["NICKEL", 0], ["DIME", 0], ["QUARTER", 0], ["ONE", 0], ["FIVE", 0], ["TEN", 0], ["TWENTY", 0], ["ONE HUNDRED", 0]]
, and the #purchase-btn
element is clicked, the value in the #change-due
element should be Status: CLOSED PENNY: $0.5
Am I missing something? how can the same cash value and price show each status in change-due?
Challenge Information:
Build a Cash Register Project - Build a Cash Register