From 8cd088c8adf6aae0302fcf97ef1fb53d7c29238e Mon Sep 17 00:00:00 2001 From: Akhilmasihadas <89574383+Akhilmasihadas@users.noreply.github.com> Date: Tue, 16 Jun 2026 16:11:56 +0530 Subject: [PATCH] Refactor product sorting scenario in feature file Updated the product sorting feature to include sorting actions and validation. --- features/product.feature | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/features/product.feature b/features/product.feature index 8a7ceab9..81e0f482 100644 --- a/features/product.feature +++ b/features/product.feature @@ -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 - Then I will login as 'standard_user' - # TODO: Sort the items by - # TODO: Validate all 6 items are sorted correctly by price + # Validate sort using Scenario Outline + Scenario Outline: Validate product sort by price + Then I will login as 'standard_user' + Then I sort the items by "" + Then I validate all products are sorted correctly by price "" + Examples: - # TODO: extend the datatable to paramterize this test - | sort | \ No newline at end of file + | sort | + | Price (low to high) | + | Price (high to low) |