As a System Administrator
I need to have a GUI to hold an item in a shopcart
So that I can follow the user's wishes to hold items or not
Details and Assumptions
Create and connect button "Hold For Later" to hold_items function
Create new field in results table for property "Hold"
Acceptance Criteria
Given a set of items
| user_id | item_id | item_name | quantity | price | hold
| 1001 | 1 | ring1 | 2 | 1998 | true
| 1001 | 2 | ring2 | 1 | 1.5 | false
| 1002 | 1 | ring1 | 3 | 3 | true
When we visit the "home page"
And we enter "1001" to the text box "User_ID"
And we enter "2" to the text box "Item_ID"
And we press the button "Hold-For-Later"
Then we should see message "Successfully put item on hold"
And we press the button "Get-Item"
And we should not see "false" in the results
And we should see "true" in the results
Given a set of items
| user_id | item_id | item_name | quantity | price | hold
| 1001 | 1 | ring1 | 2 | 1998 | true
| 1001 | 2 | ring2 | 1 | 1.5 | false
| 1002 | 1 | ring1 | 3 | 3 | true
When we visit the "home page"
And we enter "1001" to the text box "User_ID"
And we enter "1" to the text box "Item_ID"
And we press the button "Hold-For-Later"
Then we should see message "Successfully put item on hold"
And we press the button "Get-Item"
And we should not see "false" in the results
And we should see "true" in the results
Given a set of items
| user_id | item_id | item_name | quantity | price | hold
| 1001 | 1 | ring1 | 2 | 1998 | true
| 1001 | 2 | ring2 | 1 | 1.5 | false
| 1002 | 1 | ring1 | 3 | 3 | true
When we visit the "home page"
And we enter "1001" to the text box "User_ID"
And we enter "true" to the text box "Item_ID"
And we press the button "Hold-For-Later"
Then we should see status code 400
As a System Administrator I need to have a GUI to hold an item in a shopcart So that I can follow the user's wishes to hold items or not
Details and Assumptions
Create new field in results table for property "Hold"
Acceptance Criteria