-
-
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.
[CatalogPromotion][API] Add scenarios for applying catalog promotion …
…in proper channels
- Loading branch information
Showing
2 changed files
with
40 additions
and
1 deletion.
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
39 changes: 39 additions & 0 deletions
39
...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,39 @@ | ||
@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" | ||
And the store operates on another channel named "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 the store has a "Mug" configurable product | ||
And this product has "PHP Mug" variant priced at "$10.00" in "Web-GB" channel | ||
And there is a catalog promotion "Winter sale" available in "Web-US" channel | ||
And it applies on "PHP T-Shirt" variant | ||
And it applies on "PHP Mug" variant | ||
And it reduces price by "30%" | ||
|
||
@todo @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" | ||
|
||
@todo @api | ||
Scenario: Applying catalog promotion in different channel | ||
When I change my current channel to "Web-GB" | ||
And I view product "T-Shirt" | ||
Then I should see the product price "$21.00" | ||
And I should see the product original price "$30.00" | ||
|
||
@todo @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 "Mug" | ||
Then I should see the product price "$15.00" | ||
And I should see the product original price "$15.00" |