ChrisRaynerSG / AutomatedWebTestingProject

A project to look at the functionality of https://automationexercise.com/ derive user stories, and create test cases for those users stories.
0 stars 2 forks source link

As a user I want to be able to add items to my cart so that I can purchase them #9

Closed ChrisRaynerSG closed 2 months ago

ChrisRaynerSG commented 2 months ago

9.1 @happy Scenario: add item to cart from products page Given I am on the products page When I click add to cart And the item is in stock Then my cart should be updated

ChrisRaynerSG commented 2 months ago

9.2 @sad Scenario: go to checkout not logged in Given I am on view_cart page And I have an item in my cart And I am not logged in when I click Proceed to checkout Then I should be instructed to login or register

ChrisRaynerSG commented 2 months ago

9.3 @happy Scenario: go to checkout logged in Given I am on view_cart page And I have an item in my cart And I am logged in When I click proceed to checkout Then I should be directed to the checkout page And my address details should be correct

ChrisRaynerSG commented 2 months ago

9.4 @happy Scenario: place an order Given I am on checkout page And I have an item in my cart When I click Place Order Then I should be directed to the payment page

ChrisRaynerSG commented 2 months ago

9.5 @Sad scenario: invalid card details Given I am on the payment page And I have not input my card details When I click pay and confirm order Then I should be informed what is missing And remain on the payment page

ChrisRaynerSG commented 2 months ago

9.6 @Happy scenario: make a payment Given I am on the payment page And I have input my card details When I click pay and confirm order Then I should be directed to the payment_done page And be informed with the message "Congratulations! Your order has been confirmed!" // And I should be able to download an invoice of my purchase

ChrisRaynerSG commented 2 months ago

9.7 @happy scenario: remove item from cart Given I am on the view_cart page And I have an item in my cart When I click remove item Then the item should be removed from my cart

ChrisRaynerSG commented 2 months ago

9.8 @happy scenario: I want the correct items to be displayed in my cart Given I am on the view_cart page And I have items in my cart Then the correct number of items should be displayed And the correct items should be displayed

ChrisRaynerSG commented 2 months ago

9.9 @happy scenario: add item to cart from home page Given I am on the home page When I click add item to cart And the item is in stock Then my cart should be updated

ChrisRaynerSG commented 2 months ago

9.10 @happy scenario: add item to cart from item page Given I am on the items page When I click add item to cart And the item is in stock Then my cart should be updated