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
Connect button "Remove" to delete_items
[EDIT: please fix the below BDD testing by adding a HOLD column whenever you do this story thank you :) ]
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 enter "1001" 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 "1001" to the text box "User ID"
And we press the button "Retrieve"
Then we should 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 "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
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
Connect button "Remove" to delete_items
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 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