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
8 changes: 5 additions & 3 deletions features/login.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ Feature: Login Feature

Scenario: Validate the login page title
# TODO: Fix this failing scenario
Then I should see the title "Labs Swag"
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
Then I will login without a password as a 'locked_out_user'

# TODO: Add a step to validate the error message received
Then I should see the error message "Epic sadface: Password is required"
9 changes: 8 additions & 1 deletion features/product.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,16 @@ 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'
# TODO: Sort the items by <sort>
And I will sort products by "<sort>"

# TODO: Validate all 6 items are sorted correctly by price
Then products should be sorted correctly by "<sort>"

Examples:
# TODO: extend the datatable to paramterize this test
| sort |
| sort |
| Price (low to high) |
| Price (high to low) |
15 changes: 14 additions & 1 deletion features/purchase.feature
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,22 @@ Feature: Purchase Feature
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)
Then I will select the cart

# TODO: Select Checkout
Then I will select checkout

# TODO: Fill in the First Name, Last Name, and Zip/Postal Code
Then I will enter checkout details

# TODO: Select Continue
Then I will select continue

# TODO: Select Finish
# TODO: Validate the text 'Thank you for your order!'
Then I will select finish


# TODO: Validate the text 'Thank you for your order!'
Then I will see a confirmation message "Thank you for your order!"
Loading
Loading