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
17 changes: 13 additions & 4 deletions features/login.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,18 @@ Feature: Login Feature
Given I open the "https://www.saucedemo.com/" page

Scenario: Validate the login page title
Given Login page is available after loading
When I will login as 'standard_user'
# 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
Scenario Outline: Validate login error message
Given Login page is available after loading
When I will login as 'locked_out_user'
# TODO: Add a step to validate the error message received
Then I see error message "Epic sadface: Sorry, this user has been locked out."

Examples:
| username | errorMessage |
| locked_out_user | Epic sadface: Sorry, this user has been locked out. |
| problem_user | Swag Labs |
19 changes: 11 additions & 8 deletions features/product.feature
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@ Feature: Product Feature

Background:
Given I open the "https://www.saucedemo.com/" page
And I will login as 'standard_user'

Scenario Outline: Validate product sort by price <sortOption>
When I select sort option "<sortOption>"
Then I should see products sorted by "<sortOption>"

Examples:
| sortOption |
| Price (low to high) |
| Price (high to low) |


# 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>
# TODO: Validate all 6 items are sorted correctly by price
Examples:
# TODO: extend the datatable to paramterize this test
| sort |
12 changes: 6 additions & 6 deletions features/purchase.feature
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ 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)
# 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!'
When Select the cart
And Select Checkout
And Fill in the 'test1', 'test2', and '1234'
And Select Continue
And Select Finish
Then Validate the text 'Thank you for your order!'
Empty file added npm
Empty file.
Loading
Loading