CSCI-GA-2820-SP23-001 / shopcarts

This repository contains the shopcarts service
Apache License 2.0
0 stars 1 forks source link

DELETE - Add BDD test case for items to .feature file to test RESTful API #121

Open kneelanda opened 1 year ago

kneelanda commented 1 year ago

As a user, I need to be able to delete an item from a shopcart in the API, So that I can view all available data.

Details and Assumptions The expected format of the response containing the list of resources (e.g. JSON, XML) The expected structure of the response (e.g. each resource as an object within an array, a paginated list) The expected behavior of the API in cases where there are no resources to list Any filters or query parameters that may be included in the GET request to list resources

Acceptance Criteria

Scenario: Delete an item in the shopcart
    When I visit the "Home Page"
    And I press the "Search" button
    Then I should see the message "Success"
    When I copy the "ID" field
    And I paste the "Shopcart ID" field
    And I press the "Retrieve Item" button
    Then I should see the message "Success"
    When I press the "Delete Item" button
    And I paste the "Shopcart ID" field
    And I press the "Retrieve Item" button
    Then I should not see "shirt" in the item results
    And I should see "pants" in the item results