As a System Administrator
I need to have a GUI to resume an item (for purchase) in a shopcart
So that I can follow the user's wishes to hold items or not
Details and Assumptions
Create and connect button "Resume-For-Purchase" to resume_items function
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 "Resume-For-Purchase"
Then we should see message "Successfully resumed item for purchase"
And we press the button "Get-Item"
And we should see "False" in the results
And we should not 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 "Resume-For-Purchase"
Then we should see message "Successfully resumed item for purchase"
And we press the button "Get-Item"
And we should see "False" in the results
And we should not 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 "Resume-For-Purchase"
Then we should see status code 400
As a System Administrator I need to have a GUI to resume an item (for purchase) in a shopcart So that I can follow the user's wishes to hold items or not
Details and Assumptions
Create and connect button "Resume-For-Purchase" to resume_items function
Acceptance Criteria