Open mtorres253 opened 7 years ago
So that I can correct errors in my sealed bid or update it when I get more information, as a vendor, I should be able to do this via the UI
[ ] Scenario: Vendor sees way to update a sealed bid
Given I am an authenticated vendor
And I've already bid on a sealed auction
And the sealed auction has not yet ended
When I go to the show page for that auction
I should see a button labeled "Update bid amount" in the status box
[ ] Scenario: Vendor clicks "Update bid" button for sealed bid
When I click on the "Update bid amount" button
Then I should see the bid input form again
And in the top of the status box I should see this message
Update bid amount The maximum bid is [auction.starting_price]. Your current bid is [users current bid].
And my bid should be pre-populated in the input box
And I should see a button labeled "Update bid"
And I should see a button labeled "Cancel"
[ ] Scenario: Vendor updates sealed bid
And I change my bid
When I click the "Update bid" button
And there are no errors
Then my new bid should be saved
And I should see the following message
Bid placed You placed a bid of [bid.amount] on [date of bid]
See below for style
So that I can correct errors in my sealed bid or update it when I get more information, as a vendor, I should be able to do this via the UI
[ ] Scenario: Vendor sees way to update a sealed bid
Given I am an authenticated vendor
And I've already bid on a sealed auction
And the sealed auction has not yet ended
When I go to the show page for that auction
I should see a button labeled "Update bid amount" in the status box
[ ] Scenario: Vendor clicks "Update bid" button for sealed bid
When I click on the "Update bid amount" button
Then I should see the bid input form again
And in the top of the status box I should see this message
And my bid should be pre-populated in the input box
And I should see a button labeled "Update bid"
And I should see a button labeled "Cancel"
[ ] Scenario: Vendor updates sealed bid
And I change my bid
When I click the "Update bid" button
And there are no errors
Then my new bid should be saved
And I should see the following message
Notes
See below for style