CSCI-GA-2820-SP23-001 / shopcarts

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

LIST - Add BDD test case for items to .feature file to test RESTful API #118

Open kneelanda opened 1 year ago

kneelanda commented 1 year ago

As a user, I need to be able to retrieve a list of items 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: List items in a 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"
    And I should see "shirt" in the item results
    And I should see "pants" in the item results