BETTERZON-21: Adding .feature for searching Product and began work on stepdefs file

This commit is contained in:
Patrick
2020-11-01 19:07:12 +01:00
parent 8833bed232
commit 482474d10d
4 changed files with 59 additions and 1 deletions
+1 -1
View File
@@ -9,4 +9,4 @@ Feature: Guess the word
Scenario: Breaker joins a game
Given the Maker has started a game with the word "silky"
When the Breaker joins the Maker's game
Then the Breaker must guess a word with 5 characters
Then the Breaker must guess a word with 5 characters
@@ -0,0 +1,26 @@
Feature: Search a Product
Scenario: User searches for unknown product
Given the user is on the landing page
When the user enters the search term "iPhone 13" and clicks search
Then the user should see the error page "No products found"
Scenario: User is not logged in, searches for known product
Given the user is on the landing page
And the user is not logged in
When the user enters the search term "iPhone 12" and clicks search
Then the user should see a list of products
When the user clicks on the first product
Then the user should see the product detail page
And the set price alarm box should show "Log in to continue"
Scenario: User is logged in, searches for known product
Given the user is on the landing page
And the user is logged in
When the user enters the search term "iPhone 12" and clicks search
Then the user should see a list of products
When the user clicks on the first product
Then the user should see the product detail page
And the set price alarm box should show "Set price alarm"
When the user sets a price alarm
Then the user should receive an email confirming the price alarm