Skip to content

Commit

Permalink
Created code for Deleting a shopcart
Browse files Browse the repository at this point in the history
  • Loading branch information
sp7455 committed Apr 28, 2024
1 parent ac1614b commit e033bf4
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 e033bf4

Please sign in to comment.