2022-Spring-NYU-DevOps-Shopcarts / shopcarts

Shopcarts squad.
Apache License 2.0
2 stars 2 forks source link

UI of Delete Items #88

Closed Adora2401 closed 2 years ago

Adora2401 commented 2 years ago

As a System Administrator I need to have a GUI to remove a certain item in a shopcart
So that I can easily delete a certain item in a certain shopcart without using CLI

Details and Assumptions

Given a set of items | user_id | item_id | item_name | quantity | price | | 1001 | 1 | ring1 | 2 | 1998 | | 1001 | 2 | ring2 | 1 | 1.5 | | 1002 | 1 | ring1 | 3 | 3 | When we enter "1003" to the text box "User ID" And we enter "1" to the text box "Item ID" And we press the button "Remove" And we enter "1003" to the text box "User ID" And we press the button "Retrieve" Then we should not see "[1, ring1, 2, 1998]" in the results And we should not see "[2, ring2, 1, 1.5]" in the results And we should not see "[1, ring1, 3, 3]" in the results

Given a set of items | user_id | item_id | item_name | quantity | price | | 1001 | 1 | ring1 | 2 | 1998 | | 1001 | 2 | ring2 | 1 | 1.5 | | 1002 | 1 | ring1 | 3 | 3 | When we enter "1002" to the text box "User ID" And we enter "2" to the text box "Item ID" And we press the button "Remove" And we enter "1002" to the text box "User ID" And we press the button "Retrieve" Then we should not see "[1, ring1, 2, 1998]" in the results And we should not see "[2, ring2, 1, 1.5]" in the results And we should see "[1, ring1, 3, 3]" in the results