-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #13081 [CatalogPromotion][API] Apply catalog promotion in pro…
…per channels (GSadee) This PR was merged into the 1.11-dev branch. Discussion ---------- | Q | A | --------------- | ----- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Related tickets | #13009 | License | MIT <!-- - Bug fixes must be submitted against the 1.9 or 1.10 branch (the lowest possible) - Features and deprecations must be submitted against the master branch - Make sure that the correct base branch is set To be sure you are not breaking any Backward Compatibilities, check the documentation: https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html --> Commits ------- f438c80 [CatalogPromotion][API] Add scenarios for applying catalog promotion in proper channels 6ffdba1 [CatalogPromotion][API] Improve and implement scenarios for applying catalog promotion in proper channels bda8906 [CatalogPromotion][API] Apply catalog promotion in proper channels 8f3c9d1 [CatalogPromotion][Behat] Remove unused step definition 8305c48 [CatalogPromotion][Fixtures] Remove unnecessary normalizing rules and actions in example factory
- Loading branch information
Showing
10 changed files
with
129 additions
and
67 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...res/promotion/applying_catalog_promotions/applying_catalog_promotions_for_variant.feature
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
28 changes: 28 additions & 0 deletions
28
...motion/applying_catalog_promotions/applying_catalog_promotions_in_proper_channels.feature
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,28 @@ | ||
@applying_catalog_promotions | ||
Feature: Applying catalog promotions only in proper channels | ||
In order to be attracted to products | ||
As a Visitor | ||
I want to see discounted products in the catalog of proper channel | ||
|
||
Background: | ||
Given the store operates on a channel named "Web-US" with hostname "web-us" | ||
And the store operates on another channel named "Web-GB" with hostname "web-gb" | ||
And the store has a "T-Shirt" configurable product | ||
And this product has "PHP T-Shirt" variant priced at "$20.00" in "Web-US" channel | ||
And "PHP T-Shirt" variant priced at "$30.00" in "Web-GB" channel | ||
And this product is available in "Web-US" channel and "Web-GB" channel | ||
And there is a catalog promotion "Winter sale" available in "Web-US" channel that reduces price by "30%" and applies on "PHP T-shirt" variant | ||
|
||
@api | ||
Scenario: Applying catalog promotion | ||
When I change my current channel to "Web-US" | ||
And I view product "T-Shirt" | ||
Then I should see the product price "$14.00" | ||
And I should see the product original price "$20.00" | ||
|
||
@api | ||
Scenario: Not applying catalog promotion if it is not available in current channel | ||
When I change my current channel to "Web-GB" | ||
And I view product "T-Shirt" | ||
Then I should see the product price "$30.00" | ||
And I should see the product original price "$30.00" |
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
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