|
| 1 | +@applying_catalog_promotions |
| 2 | +Feature: Reapplying catalog promotions on taxon once its data changes |
| 3 | + In order to have proper discounts on taxon |
| 4 | + As a Store Owner |
| 5 | + I want to have discounts reapplied on taxon once its data changes |
| 6 | + |
| 7 | + Background: |
| 8 | + Given the store operates on a channel named "Web-US" with hostname "web-us" |
| 9 | + And the store classifies its products as "Clothes" and "Dishes" |
| 10 | + And the store has a "T-Shirt" configurable product |
| 11 | + And this product belongs to "Clothes" |
| 12 | + And this product has "PHP T-Shirt" variant priced at "$100.00" |
| 13 | + And the store has a "Mug" configurable product |
| 14 | + And this product belongs to "Dishes" |
| 15 | + And this product has "PHP Mug" variant priced at "$10.00" |
| 16 | + And I am logged in as an administrator |
| 17 | + |
| 18 | + @api @ui @javascript |
| 19 | + Scenario: Reapplying catalog promotion after changing the taxon of catalog promotion |
| 20 | + Given there is a catalog promotion "Winter sale" that reduces price by "30%" and applies on "Clothes" taxon |
| 21 | + When I edit "Winter sale" catalog promotion to be applied on "Dishes" taxon |
| 22 | + Then the visitor should see "$100.00" as the price of the "T-Shirt" product in the "Web-US" channel |
| 23 | + And the visitor should see "$7.00" as the price of the "Mug" product in the "Web-US" channel |
| 24 | + And the visitor should still see "$10.00" as the original price of the "Mug" product in the "Web-US" channel |
| 25 | + |
| 26 | + @api @ui @javascript |
| 27 | + Scenario: Reapplying catalog promotion after changing scope from variant to taxon based |
| 28 | + Given there is a catalog promotion "Winter sale" that reduces price by "30%" and applies on "PHP T-Shirt" variant |
| 29 | + When I edit "Winter sale" catalog promotion to be applied on "Dishes" taxon |
| 30 | + Then the visitor should see "$100.00" as the price of the "T-Shirt" product in the "Web-US" channel |
| 31 | + And the visitor should see "$7.00" as the price of the "Mug" product in the "Web-US" channel |
| 32 | + And the visitor should still see "$10.00" as the original price of the "Mug" product in the "Web-US" channel |
0 commit comments