Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions features/login.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ Feature: Login Feature
Given I open the "https://www.saucedemo.com/" page

Scenario: Validate the login page title
# TODO: Fix this failing scenario
Then I should see the title "Labs Swag"
# TODO: Fix this failing scenario - DONE
Then I should see the title "Swag Labs"

Scenario: Validate login error message
Then I will login as 'locked_out_user'
# TODO: Add a step to validate the error message received
# TODO: Add a step to validate the error message received
Then I validate the error message 'Epic sadface: Sorry, this user has been locked out.' received
12 changes: 8 additions & 4 deletions features/product.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ Feature: Product Feature

# Create a datatable to validate the Price (high to low) and Price (low to high) sort options (top-right) using a Scenario Outline
Scenario Outline: Validate product sort by price <sort>
Then I will login as 'standard_user'
Then I will login as 'standard_user'
# TODO: Sort the items by <sort>
When I sort the items by "<sort>"
# TODO: Validate all 6 items are sorted correctly by price
Examples:
# TODO: extend the datatable to paramterize this test
| sort |
Then I validate all 6 items are sorted "<order>"
Examples:
# TODO: extend the datatable to paramterize this test
| sort | order |
| Price (low to high) | ascending |
| Price (high to low) | descending |
22 changes: 14 additions & 8 deletions features/purchase.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,17 @@ Feature: Purchase Feature
Given I open the "https://www.saucedemo.com/" page

Scenario: Validate successful purchase text
Then I will login as 'standard_user'
Then I will add the backpack to the cart
# TODO: Select the cart (top-right)
# TODO: Select Checkout
# TODO: Fill in the First Name, Last Name, and Zip/Postal Code
# TODO: Select Continue
# TODO: Select Finish
# TODO: Validate the text 'Thank you for your order!'
Then I will login as 'standard_user'
Then I will add the backpack to the cart
# TODO: Select the cart (top-right) - DONE
Then I Select the cart top-right
# TODO: Select Checkout- DONE
Then I select checkout
# TODO: Fill in the First Name, Last Name, and Zip/Postal Code - DONE
Then I Fill in the First Name 'First', Last Name 'Last', and ZipPostal Code '12345'
# TODO: Select Continue - DONE
Then I select Continue
# TODO: Select Finish - DONE
Then I select Finish
# TODO: Validate the text 'Thank you for your order!' - DONE
Then I Validate the text 'Thank you for your order!'
Loading
Loading