-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwishlist.feature
33 lines (27 loc) · 1.25 KB
/
wishlist.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Feature: Adding products to the Wish List
Background:
Given the application is at the "<page>"
Scenario: User not being logged in
Given the user is not logged in
When the user clicks on Add to Wish List button
Then he will be prompted to create an account or log in
Scenario: User being logged in
Given the user is logged in
When the user clicks on Add to Wish List button
Then the item will be added to his Wish List
Scenario: Adding products from Wishlist to cart
Given the user is in their Wishlist page
And the user has items in their Wishlist
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: Removing products from Wishlist
Given the user is in their Wishlist page
And the user has items in their Wishlist
When the user clicks on the Remove button
Then the products will be removed from the Wishlist
Examples: Pages where the Add to wish list button is displayed
| page |
| homepage |
| product page |
| search results page |