As a System Administrator
I need to have a GUI to remove all items in a shopcart
So that I can easily empty a certain shopcart without using CLI
Details and Assumptions
Connect button "Clear Shopcart" to delete_shopcarts
Acceptance Criteria
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 visit the "home page"
And we enter "1001" to the text box "User_ID"
And we press the button "Clear-Shopcart"
Then we should see message "Successfully cleared the shopcart"
When we press the button "Retrieve"
Then we should not see "ring1" in the results
And we should not see "ring2" 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 visit the "home page"
And we enter "1001" to the text box "User_ID"
And we press the button "Clear-Shopcart"
Then we should see message "Successfully cleared the shopcart"
When we enter "1002" to the text box "User_ID"
And we press the button "Retrieve"
Then we should see "ring1" in the results
As a System Administrator I need to have a GUI to remove all items in a shopcart So that I can easily empty a certain shopcart without using CLI
Details and Assumptions
Connect button "Clear Shopcart" to delete_shopcarts
Acceptance Criteria
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 visit the "home page" And we enter "1001" to the text box "User_ID" And we press the button "Clear-Shopcart" Then we should see message "Successfully cleared the shopcart" When we enter "1002" to the text box "User_ID" And we press the button "Retrieve" Then we should see "ring1" in the results