-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadd_to_cart.feature
22 lines (19 loc) · 1010 Bytes
/
add_to_cart.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Feature: Adding products to cart
Scenario: Adding products from homepage featured products
Given the user is at the homepage
When the user clicks on the "Add to Cart" button
Then the product will be added to cart
And the total price of products in cart will be updated
Scenario: Adding products from search page
Given the user has searched for a product
And the user is at the search results page
And at least one product is displayed
When the user clicks on the "Add to Cart" button
Then the product will be added to the cart
And the total price of products in cart will be updated
Scenario: Adding products from product page
Given the user is at the product page
When the user sets the quantity to desired amount
And click on the "Add to Cart" button
Then the desired quantity of product will be added to the cart
And the total price of products in the cart will be updated