You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feature: Login featureBackground:
Given The user opens the web page or app
Scenario: User successfully logs in with valid credentialsWhen The user enters a valid username
And The user enters a valid password
And The user clicks the login button
Then The user should be logged in successfully
Scenario: User failed logs in with invalid password with registered user credentialsWhen The user enters a valid username
And The user enters a invalid password
And The user clicks the login button
Then The user should be see error message
Scenario: User failed logs in with invalid credentialsWhen The user enters a invalid username
And The user enters a invalid password
And The user clicks the login button
Then The user should be see error message
Add Product to Cart
Feature: Add Product to CartBackground:
Given The user opens the web page or app
When The user enters a valid username
And The user enters a valid password
And The user clicks the login button
Then The user should be logged in successfully
Scenario: User successfully adds a product to the cartWhen The user clicks the add to cart button
Then The text on the add to cart button should change to remove
Then The number of items in the cart icon should be 1
When The user clicks the add to cart button for another product
Then The text on the add to cart button other product should change to remove
Then The number of items in the cart icon should be 2
Cart
Feature: Remove Items from CartBackground:
Given The user opens the web page or app
When The user enters a valid username
And The user enters a valid password
And The user clicks the login button
Then The user should be logged in successfully
Then The user clicks the add to cart button
Then The user clicks the add to cart button for another product
Scenario: Remove an Item from the CartGiven The user is on the cart page
Then The user should see at least 2 products in their cart
When The user clicks the remove button for the first item
Then The number of items in the cart icon should be 1
Then The user should see at least 1 products in their cart
When The user clicks the remove button for the first item
Then The shopping cart should be empty
Checkout
Feature: CheckoutBackground:
Given The user opens the web page or app
When The user enters a valid username
And The user enters a valid password
And The user clicks the login button
Then The user should be logged in successfully
And The user clicks the add to cart button
And The user clicks the add to cart button for another product
And The user is on the cart page
Scenario Outline: User Successfully Checks Out ProductsGiven The user is on the cart page
Then The user should see at least 2 products in their cart
And The user clicks the checkout button
And The user should be redirected to the checkout page step "one"And The user enters <fistName> as the first name
And The user enters <lastName> as the last name
And The user enters <postalCode> as the postal code
And The user clicks the continue button
And The user should be redirected to the checkout page step "two"And The user clicks the finish button
And The user should be redirected to the checkout complete page
And The user clicks the back home button
Then The number of items in the cart icon should be empty
Examples:
| fistName | lastName | postalCode | | example | example_last_name | 3301 | | --- | example_last_name | 3301 | | ? | --- | 0 |Scenario: User Failed checks Out ProductsGiven The user is on the cart page
Then The user should see at least 2 products in their cart
And The user clicks the checkout button
And The user should be redirected to the checkout page step "one"And The user clicks the continue button
Then The user should be see error message
Scenario: User Failed checks Out Products without first nameGiven The user is on the cart page
Then The user should see at least 2 products in their cart
And The user clicks the checkout button
And The user should be redirected to the checkout page step "one"And The user enters "example_last_name" as the last name
And The user enters 111 as the postal code
And The user clicks the continue button
Then The user should be see error message
Scenario: User Failed checks Out Products without last nameGiven The user is on the cart page
Then The user should see at least 2 products in their cart
And The user clicks the checkout button
And The user should be redirected to the checkout page step "one"And The user enters "example" as the first name
And The user enters 111 as the postal code
And The user clicks the continue button
Then The user should be see error message
Scenario: User Failed checks Out Products without postal codeGiven The user is on the cart page
Then The user should see at least 2 products in their cart
And The user clicks the checkout button
And The user should be redirected to the checkout page step "one"And The user enters "example" as the first name
And The user enters "example_last_name" as the last name
And The user clicks the continue button
Then The user should be see error message
Logout
Feature: LogoutBackground:
Given The user opens the web page or app
When The user enters a valid username
And The user enters a valid password
And The user clicks the login button
Scenario: User logout after loginGiven The user should be logged in successfully
When The user clicks the burger button
Then The user should see the slide menu
And The user clicks logout
Then The user should be redirected to the login page