Skip to content
Open
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
19 changes: 11 additions & 8 deletions features/product.feature
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
Feature: Product Feature

Background:

Background:
Given I open the "https://www.saucedemo.com/" page

# 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
# Validate sort using Scenario Outline
Scenario Outline: Validate product sort by price <sort>
Then I will login as 'standard_user'
Then I sort the items by "<sort>"
Then I validate all products are sorted correctly by price "<sort>"

Examples:
# TODO: extend the datatable to paramterize this test
| sort |
| sort |
| Price (low to high) |
| Price (high to low) |
Loading