Skip to content

Commit

Permalink
Merge pull request #127 from CSCI-GA-2820-SP24-001/Delete-a-shopcart-2
Browse files Browse the repository at this point in the history
BDD test for deleting a shopcart
  • Loading branch information
whykay-01 authored Apr 29, 2024
2 parents ac1614b + e033bf4 commit e58737f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions features/shopcarts.feature
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,19 @@ Feature: The shopcarts service back-end
And I press the "Update Shopcart" button
Then I should see the message "Success"

# DELETE A SHOPCART
Scenario: Delete a shopcart
When I visit the "Home Page"
And I set the "Shopcart User ID" to "1"
And I press the "Search Shopcart" button
Then I should see the message "Success"
And I should see "1" under the row "User ID 1" in the table
When I press the "Delete Shopcart" button
Then I should see the message "Success"
When I press the "Search Shopcart" button
Then I should see the message "Success"
And I should not see "User ID 1" in the results

# CREATE AN ITEM
Scenario: Create an item
When I visit the "Home Page"
Expand Down

0 comments on commit e58737f

Please sign in to comment.