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
21 changes: 11 additions & 10 deletions features/purchase.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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!'
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!"
Loading