CSCI-GA-2820-SP23-001 / shopcarts

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

DECREASE - Add BDD test case for items to .feature file to test RESTful API #123

Open kneelanda opened 1 year ago

kneelanda commented 1 year ago

As a user, I need to be able to decrease an item in 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: Decrease an item in a Shopcart
    When I visit the "Home Page"
    And I set the "Name" to "Jon"
    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 "3" in the item results
    When I press the "Decrease Quantity" button
    And I press the "Retrieve Item" button
    Then I should see "2" in the item results