|
1 | 1 | @bundled_product
|
2 | 2 | Feature: Having a product in store which is a bundle of other products
|
3 |
| - I want to be able to add bundled product to cart |
| 3 | + As a Customer |
| 4 | + I want to be able to order bundled products |
4 | 5 |
|
5 |
| - Background: |
6 |
| - Given the store operates on a single channel in "United States" |
7 |
| - And I am a logged in customer |
8 |
| - And the store ships everywhere for Free |
9 |
| - And the store allows paying Offline |
| 6 | + Background: |
| 7 | + Given the store operates on a single channel in "United States" |
| 8 | + And the store has "VAT" tax rate of 50% for "Coke" within the "US" zone |
| 9 | + And I am a logged in customer |
| 10 | + And the store ships everywhere for Free |
| 11 | + And the store allows paying Offline |
| 12 | + And the store has a product "Jim Beam" priced at "$10.00" |
| 13 | + And the store has a product "Jim Beam Double Oak" priced at "$10.00" |
| 14 | + And the store has a product "Coca-Cola" priced at "$5.00" |
| 15 | + And the store has bundled product "Jim Beam double pack" priced at "$18.00" which contains "Jim Beam" and "Jim Beam Double Oak" |
| 16 | + And the store has bundled product "Jim Beam&Coke" priced at "$12.00" which contains "Jim Beam" and "Coca-Cola" |
| 17 | + And it belongs to "Coke" tax category |
| 18 | + And all store products appear under a main taxonomy |
10 | 19 |
|
11 |
| - @ui |
12 |
| - Scenario: Adding a product bundle to the cart |
13 |
| - Given the store has a product "Jack Daniels Gentleman" priced at "$10.00" |
14 |
| - And the store has a product "Johny Walker Black" priced at "$10.00" |
15 |
| - And the store has bundled product "Whiskey double pack" priced at "$18.00" which contains "Jack Daniels Gentleman" and "Johny Walker Black" |
16 |
| - And all store products appear under a main taxonomy |
17 |
| - Then I added product "Whiskey double pack" to the cart |
18 |
| - And I should be on my cart summary page |
19 |
| - And there should be one item in my cart |
| 20 | + @ui |
| 21 | + Scenario: Adding product bundles to cart |
| 22 | + When I added product "Jim Beam double pack" to the cart |
| 23 | + And I change product "Jim Beam double pack" quantity to 5 in my cart |
| 24 | + Then I should see "Jim Beam double pack" with quantity 5 in my cart |
| 25 | + And my cart total should be "$90.00" |
20 | 26 |
|
21 |
| - @ui |
22 |
| - Scenario: Adding a few product bundles to the cart |
23 |
| - Given the store has a product "Jim Beam" priced at "$10.00" |
24 |
| - And the store has a product "Jim Beam Double Oak" priced at "$10.00" |
25 |
| - And the store has bundled product "Jim Beam double pack" priced at "$18.00" which contains "Jim Beam" and "Jim Beam Double Oak" |
26 |
| - And all store products appear under a main taxonomy |
27 |
| - Then I added product "Jim Beam double pack" to the cart |
28 |
| - And I change product "Jim Beam double pack" quantity to 5 in my cart |
29 |
| - And I should see "Jim Beam double pack" with quantity 5 in my cart |
| 27 | + @ui |
| 28 | + Scenario: Placing an order for bundled products |
| 29 | + Given I have product "Jim Beam double pack" in the cart |
| 30 | + And I have product "Jim Beam&Coke" in the cart |
| 31 | + And my cart total should be "$30.00" |
| 32 | + And I specified the billing address as "Ankh Morpork", "Frost Alley", "90210", "United States" for "Jon Snow" |
| 33 | + And I proceed with "Free" shipping method and "Offline" payment |
| 34 | + When I confirm my order |
| 35 | + Then I should see the thank you page |
30 | 36 |
|
31 |
| - @ui |
32 |
| - Scenario: Placing an order for a bundled product |
33 |
| - Given the store has a product "Jim Beam" priced at "$10.00" |
34 |
| - And the store has a product "Jim Beam Double Oak" priced at "$10.00" |
35 |
| - And the store has bundled product "Jim Beam double pack" priced at "$18.00" which contains "Jim Beam" and "Jim Beam Double Oak" |
36 |
| - Given I have product "Jim Beam double pack" in the cart |
37 |
| - And I specified the billing address as "Ankh Morpork", "Frost Alley", "90210", "United States" for "Jon Snow" |
38 |
| - And I proceed with "Free" shipping method and "Offline" payment |
39 |
| - And I confirm my order |
40 |
| - Then I should see the thank you page |
| 37 | + @ui |
| 38 | + Scenario: Placing an order for bundled products with promotion applied |
| 39 | + Given there is a promotion "Holiday promotion" |
| 40 | + And this promotion gives "$1.00" off on every product with minimum price at "$15.00" |
| 41 | + And I have product "Jim Beam double pack" in the cart |
| 42 | + And I have product "Jim Beam&Coke" in the cart |
| 43 | + And my cart total should be "$29.00" |
| 44 | + And I specified the billing address as "Ankh Morpork", "Frost Alley", "90210", "United States" for "Jon Snow" |
| 45 | + And I proceed with "Free" shipping method and "Offline" payment |
| 46 | + When I confirm my order |
| 47 | + Then I should see the thank you page |
| 48 | + |
| 49 | + @ui |
| 50 | + Scenario: Placing an order for bundled products with tax applied |
| 51 | + Given I have product "Jim Beam double pack" in the cart |
| 52 | + And I have product "Jim Beam&Coke" in the cart |
| 53 | + And I have product "Coca-Cola" in the cart |
| 54 | + When I specified the billing address as "Ankh Morpork", "Frost Alley", "90210", "United States" for "Jon Snow" |
| 55 | + And I proceed with "Free" shipping method and "Offline" payment |
| 56 | + Then my cart total should be "$41.00" |
| 57 | + And my cart taxes should be "$6.00" |
| 58 | + |
| 59 | + @api |
| 60 | + Scenario: Adding product bundles to cart with API |
| 61 | + When I pick up my cart |
| 62 | + And I add bundle "Jim Beam&Coke" with quantity 5 to my cart |
| 63 | + And I add bundle "Jim Beam&Coke" with quantity 5 to my cart |
| 64 | + Then I should have bundle "Jim Beam&Coke" with quantity 10 in my cart |
| 65 | + And I should have product "Jim Beam" in bundled items |
| 66 | + And I should have product "Coca-Cola" in bundled items |
0 commit comments