-
-
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.
bug #11820 [ChannelPricing] Ability to remove price on channel pricin…
…g when channel is disabled (AdamKasp, Tomanhez) This PR was merged into the 1.8 branch. Discussion ---------- | Q | A | --------------- | ----- | Branch? | 1.8 | Bug fix? | yes | New feature? | yes | BC breaks? | no | Deprecations? | no | License | MIT Commits ------- fb08419 [Behat] removing product price for disabled channel dc4bcef Fix channel pricing type b116c7c Fixes for tests and FormType
- Loading branch information
Showing
7 changed files
with
143 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
...ct/managing_product_variants/removing_product_variant_price_from_disabled_channel.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,22 @@ | ||
@managing_product_variants | ||
Feature: Removing a product variant's price from disabled channel | ||
In order to have only valid prices on enabled channels | ||
As an Administrator | ||
I want to be able to remove price from disabled channels | ||
|
||
Background: | ||
Given the store operates on a channel named "Web-US" in "USD" currency | ||
And the store operates on another channel named "Web-GB" in "USD" currency | ||
And the store has a "PHP Mug" configurable product | ||
And this product has "Medium PHP Mug" variant priced at "$20" in "Web-US" channel | ||
And "Medium PHP Mug" variant priced at "$25" in "Web-GB" channel | ||
And the channel "Web-GB" has been disabled | ||
And this product is disabled in "Web-GB" channel | ||
And I am logged in as an administrator | ||
|
||
@ui | ||
Scenario: Removing a product variant 's price from disabled channel | ||
When I want to modify the "Medium PHP Mug" product variant | ||
And I remove its price for "Web-GB" channel | ||
And I save my changes | ||
Then I should not have configured price for "Web-GB" channel |
21 changes: 21 additions & 0 deletions
21
features/product/managing_products/removing_product_price_from_disabled_channel.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,21 @@ | ||
@managing_products | ||
Feature: Removing a product's price from disabled channel | ||
In order to have only valid prices on enabled channels | ||
As an Administrator | ||
I want to be able to remove price from disabled channels | ||
|
||
Background: | ||
Given the store operates on a channel named "Web-US" in "USD" currency | ||
And the store operates on another channel named "Web-GB" in "USD" currency | ||
And the store has a product "Dice Brewing" priced at "$10.00" in "Web-US" channel | ||
And this product is also priced at "$5.00" in "Web-GB" channel | ||
And the channel "Web-GB" has been disabled | ||
And this product is disabled in "Web-GB" channel | ||
And I am logged in as an administrator | ||
|
||
@ui | ||
Scenario: Removing a product's price from disabled channel | ||
When I want to modify the "Dice Brewing" product | ||
And I remove its price for "Web-GB" channel | ||
And I save my changes | ||
Then I should not have configured price for "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