As a System Administrator
I need to have a GUI to list items in a shopcart
So that I can easily observe a certain shopcart without using CLI
Details and Assumptions
Connect button "Retrieve" to get_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 "Retrieve"
Then we should see message "Successfully retrieved the shopcart"
And we should see "ring1" in the results
And we should see "ring2" in the results
And we should not see "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 visit the "home page"
And we enter "1003" to the text box "User_ID"
And we press the button "Retrieve"
Then we should see message "Successfully retrieved the shopcart"
And we should not see "ring1" in the results
And we should not see "ring2" in the results
As a System Administrator I need to have a GUI to list items in a shopcart So that I can easily observe a certain shopcart without using CLI
Details and Assumptions
Connect button "Retrieve" to get_shopcarts
Acceptance Criteria