-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathcreating_bundled_product.feature
34 lines (31 loc) · 1.74 KB
/
creating_bundled_product.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
34
@bundled_product
Feature: Creating a product in store which is a bundle of other products
I want to be able to add bundled product to cart
Background:
Given the store operates on a single channel in "United States"
And I am logged in as an administrator
And the store has a product "Jack Daniels Gentleman" priced at "$10.00"
And the store has a product "Johny Walker Black" priced at "$10.00"
And the store has a product "Jim Beam Double Oak" priced at "$10.00"
@ui
Scenario: Creating a bundled product
When I want to create a new bundled product
And I specify its code as "WHISKEY_PACK"
And I name it "Whiskey double pack" in "English (United States)"
And I set its slug to "whiskey-double-pack" in "English (United States)"
And I set its price to "$10.00" for "United States" channel
And I set its original price to "$20.00" for "United States" channel
And I add product "Johny Walker Black" and "Jack Daniels Gentleman" to the bundle
And I add it
Then I should be notified that it has been successfully created
@ui
Scenario: Creating a bundled product with more products
When I want to create a new bundled product
And I specify its code as "WHISKEY_BIG_PACK"
And I name it "Whiskey triple pack" in "English (United States)"
And I set its slug to "whiskey-triple-pack" in "English (United States)"
And I set its price to "$10.00" for "United States" channel
And I set its original price to "$20.00" for "United States" channel
And I add product "Johny Walker Black" and "Jack Daniels Gentleman" and "Jim Beam Double Oak" to the bundle
And I add it
Then I should be notified that it has been successfully created