-
-
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 #13098 [CatalogPromotions] Add product to cart with discounte…
…d catalog price (Tomanhez, arti0090) 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 | 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 ------- b77b125 Add behat scenarios 5c748dc Change behat scenario to be more descriptive and remove unneded one
- Loading branch information
Showing
5 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
features/cart/shopping_cart/adding_product_with_discounted_catalog_price_to_cart.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 @@ | ||
@shopping_cart | ||
Feature: Adding a simple product with discounted catalog price to the cart | ||
In order to select products with proper price | ||
As a Visitor | ||
I want to be able to add simple products with discounted catalog price to the cart | ||
|
||
Background: | ||
Given the store operates on a single channel in "United States" | ||
And the store has a product "Mug" priced at "$40" | ||
And the store has a product "T-Shirt" priced at "$20" | ||
And there is a catalog promotion "Winter sale" that reduces price by "25%" and applies on "T-Shirt" variant | ||
|
||
@todo | ||
Scenario: Adding a simple product with discounted catalog price to the cart | ||
When I add product "T-Shirt" to the cart | ||
And I add product "Mug" to the cart | ||
Then I should be on my cart summary page | ||
And I should be notified that the product has been successfully added | ||
And I should see "T-Shirt" with unit price "$15.00" in my cart | ||
And I should see "T-Shirt" with original price "$20.00" in my cart | ||
And I should see also "Mug" with unit price "$40.00" in my cart | ||
And I should see "Mug" with original price "$40.00" in my cart |
21 changes: 21 additions & 0 deletions
21
.../shopping_cart/adding_product_with_variants_with_discounted_catalog_price_to_cart.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 @@ | ||
@shopping_cart | ||
Feature: Adding a product with selected variant with discounted catalog price to the cart | ||
In order to select products with proper price | ||
As a Visitor | ||
I want to be able to add products with selected variants to cart | ||
|
||
Background: | ||
Given the store operates on a single channel in "United States" | ||
And the store has a product "T-Shirt" | ||
And this product has "PHP T-Shirt" variant priced at "$20" | ||
And the store has a product "Keyboard" | ||
And this product has "RGB Keyboard" variant priced at "$40" | ||
And there is a catalog promotion "Winter sale" that reduces price by "25%" and applies on "PHP T-Shirt" variant | ||
|
||
@todo | ||
Scenario: Adding multiple product variants with discounted price by catalog promotion catalog to the cart | ||
Given I add product "PHP T-Shirt" to the cart | ||
And I add product "RGB Keyboard" to the cart | ||
When I check details of my cart | ||
Then I should see "PHP T-Shirt" with unit price "$15.00" in my cart | ||
And I should see "RGB Keyboard" with unit price "$40.00" in my cart |
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