-
-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1502 from dpfaffenbauer/issue/1501
[Product] fix cloning of ProductUnitDefinitions and add test for it.
- Loading branch information
Showing
7 changed files
with
261 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@product | ||
Feature: Adding a new product with a simple quantity price rule | ||
|
||
Background: | ||
Given the site operates on a store in "Austria" | ||
And the site has a currency "Euro" with iso "EUR" | ||
And I am in country "Austria" | ||
And the site has a product "Shoe" priced at 10000 | ||
And the site has a product-unit "Pieces" | ||
And the site has a product-unit "Carton" | ||
And the site has a product-unit "Palette" | ||
And the product has the default unit "Pieces" | ||
And the product has and additional unit "Carton" with conversion rate "24" | ||
And the product has and additional unit "Palette" with conversion rate "200" | ||
|
||
Scenario: Add a quantity price rule with no conditions | ||
Given adding a quantity price rule to product "Shoe" named "default-product-quantity-price-rule" and with calculation-behaviour "volume" | ||
And the quantity price rule is active | ||
And the quantity price rule has a range starting from 0 with behaviour percentage-decrease of 10% for unit "Pieces" | ||
And the quantity price rule has a range starting from 0 with behaviour percentage-decrease of 10% for unit "Carton" | ||
And the quantity price rule has a range starting from 0 with behaviour percentage-decrease of 10% for unit "Palette" | ||
And the product has a variant "Shoe Red" | ||
And I copy the products unit-definitions and quantity-price-rules to all variants |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.