-
-
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 #13092 [CatalogPromotion][Behat] Add scenarios for reapplying…
… catalog promotions after editing its 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 | | License | MIT Commits ------- 4e93cec [CatalogPromotion][Behat] Add scenarios for reapplying catalog promotions after editing its channels 56494d0 [CatalogPromotion][Behat] Change actor of scenarios for reapplying catalog promotions after editing its channels a68f5bf [CatalogPromotion][Behat] Implement scenarios for reapplying catalog promotions after editing its channels
- Loading branch information
Showing
9 changed files
with
142 additions
and
4 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
...lying_catalog_promotions/reapplying_catalog_promotions_after_editing_its_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,35 @@ | ||
@applying_catalog_promotions | ||
Feature: Reapplying catalog promotions after editing its channels | ||
In order to have proper discounts in different channels | ||
As a Store Owner | ||
I want to have discounts reapplied in product catalog once the channels of catalog promotion changes | ||
|
||
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 | ||
And I am logged in as an administrator | ||
|
||
@todo | ||
Scenario: Removing applied catalog promotion after removing its channel | ||
When I make this catalog promotion unavailable in the "Web-US" channel | ||
Then the visitor should see "$20.00" as the price of the "T-Shirt" product in the "Web-US" channel | ||
And the visitor should see "$20.00" as the original price of the "T-Shirt" product in the "Web-US" channel | ||
|
||
@todo | ||
Scenario: Reapplying catalog promotion after adding new channel to them | ||
When I make this catalog promotion available in the "Web-GB" channel | ||
Then the visitor should see "$21.00" as the price of the "T-Shirt" product in the "Web-GB" channel | ||
And the visitor should see "$30.00" as the original price of the "T-Shirt" product in the "Web-GB" channel | ||
|
||
@todo | ||
Scenario: Reapplying catalog promotion after switching availability in channels | ||
When I switch this catalog promotion availability from the "Web-US" channel to the "Web-GB" channel | ||
Then the visitor should see "$20.00" as the price of the "T-Shirt" product in the "Web-US" channel | ||
And the visitor should see "$20.00" as the original price of the "T-Shirt" product in the "Web-US" channel | ||
And the visitor should see "$21.00" as the price of the "T-Shirt" product in the "Web-GB" channel | ||
And the visitor should see "$30.00" as the original price of the "T-Shirt" product in the "Web-GB" channel |
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