From ac13e26ed45f34ec8fd21329ff4f811f1e5ecbe7 Mon Sep 17 00:00:00 2001 From: Akhilmasihadas <89574383+Akhilmasihadas@users.noreply.github.com> Date: Tue, 16 Jun 2026 16:08:08 +0530 Subject: [PATCH] Refactor purchase scenario steps for clarity --- features/purchase.feature | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/features/purchase.feature b/features/purchase.feature index 28634789..cdded31b 100644 --- a/features/purchase.feature +++ b/features/purchase.feature @@ -2,13 +2,14 @@ Feature: Purchase Feature Background: 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!' \ No newline at end of file +Scenario: Validate successful purchase text + Then I will login as 'standard_user' + Then I will add the backpack to the cart + Then I click on the cart icon + Then I click on Checkout + Then I enter first name "John" + Then I enter last name "Doe" + Then I enter zip code "12345" + Then I click on Continue + Then I click on Finish + Then I should see the message "Thank you for your order!"