forked from BitBagCommerce/SyliusWishlistPlugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/multi channels (BitBagCommerce#126)
* add channel to wishlist entity * edit nessesary services to use channel * edit config * edit twig templates * fix tests * add new method to twig extension * run ecs * CR fixes * fix * add some behat tests * try to fix behat tests in github actions * revert github actions confing * ECS fix * add message and translations to exceptions * change translation key
- Loading branch information
1 parent
5c402c3
commit ee7da58
Showing
58 changed files
with
674 additions
and
81 deletions.
There are no files selected for viewing
67 changes: 67 additions & 0 deletions
67
features/adding_product_to_wishlist_on_multiple_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,67 @@ | ||
@wishlist | ||
Feature: Adding a product to wishlist | ||
In order to compare or buy products later | ||
As a Visitor | ||
I want to be able to add products to my wishlist on 2 different channels | ||
|
||
Background: | ||
Given the store operates on a channel named "Web-US" in "USD" currency | ||
And the store also operates on another channel named "Web-EU" in "EUR" currency | ||
And the store has a product "Leprechaun's Gold" priced at "$100.00" available in channel "Web-US" and channel "Web-EU" | ||
And the store has a product "Leprechaun's Silver" priced at "€10.00" in "Web-EU" channel | ||
And all store products appear under a main taxonomy | ||
|
||
@ui | ||
Scenario: Adding product to wishlist in the first channel checking wishlist on the second channel. | ||
Given I change my current channel to "Web-EU" | ||
When I add "Leprechaun's Silver" product to my wishlist | ||
And I should be notified that the product has been successfully added to my wishlist | ||
Then I change my current channel to "Web-US" | ||
And I go to the wishlist page | ||
And I should have 0 products in my wishlist | ||
|
||
@ui | ||
Scenario: Adding product to wishlisht on both channels | ||
Given I change my current channel to "Web-EU" | ||
When I add "Leprechaun's Silver" product to my wishlist | ||
And I should be notified that the product has been successfully added to my wishlist | ||
And I should have one item in my wishlist | ||
Then I change my current channel to "Web-US" | ||
And I add "Leprechaun's Gold" product to my wishlist | ||
And I should be notified that the product has been successfully added to my wishlist | ||
And I should have one item in my wishlist | ||
|
||
@ui | ||
Scenario: Adding product to wishlist on both channels and removing from one channel. | ||
Given I change my current channel to "Web-EU" | ||
When I add "Leprechaun's Silver" product to my wishlist | ||
And I should be notified that the product has been successfully added to my wishlist | ||
Then I change my current channel to "Web-US" | ||
And I add "Leprechaun's Gold" product to my wishlist | ||
And I should be notified that the product has been successfully added to my wishlist | ||
And I should have one item in my wishlist | ||
And I go to the wishlist page | ||
Then I check "Leprechaun's Gold" | ||
And I remove selected products from wishlist | ||
And I should have 0 products in my wishlist | ||
And I change my current channel to "Web-EU" | ||
And I go to the wishlist page | ||
And I should have one item in my wishlist | ||
|
||
@ui | ||
Scenario: Adding multiple channels product to wishlist and removing one. | ||
Given I change my current channel to "Web-EU" | ||
When I add "Leprechaun's Gold" product to my wishlist | ||
And I should be notified that the product has been successfully added to my wishlist | ||
Then I change my current channel to "Web-US" | ||
And I add "Leprechaun's Gold" product to my wishlist | ||
And I should be notified that the product has been successfully added to my wishlist | ||
And I should have one item in my wishlist | ||
And I go to the wishlist page | ||
Then I check "Leprechaun's Gold" | ||
And I remove selected products from wishlist | ||
And I should have 0 products in my wishlist | ||
And I change my current channel to "Web-EU" | ||
And I go to the wishlist page | ||
And I should have one item in my wishlist | ||
|
49 changes: 49 additions & 0 deletions
49
features/api/adding_product_to_wishlist_on_multiple_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,49 @@ | ||
@api_wishlist | ||
Feature: Adding a product to wishlist | ||
In order to compare or buy products later | ||
As a Visitor | ||
I want to be able to add products to my wishlist on 2 different channels | ||
|
||
Background: | ||
Given the store operates on a channel named "Web-US" in "USD" currency | ||
And the store also operates on another channel named "Web-EU" in "EUR" currency | ||
And the store has a product "Leprechaun's Gold" priced at "$100.00" available in channel "Web-US" and channel "Web-EU" | ||
And the store has a product "Leprechaun's Silver" priced at "€10.00" in "Web-EU" channel | ||
And all store products appear under a main taxonomy | ||
|
||
@api | ||
Scenario: Adding product to wishlist in the first channel checking wishlist on the second channel. | ||
Given I am browsing channel "Web-EU" | ||
And user has a wishlist | ||
When user adds product "Leprechaun's Silver" to the wishlist in "Web-EU" | ||
Then user should have product "Leprechaun's Silver" in the wishlist | ||
Then I am browsing channel "Web-US" | ||
And user has a wishlist in "Web-US" | ||
Then user should have an empty wishlist in "Web-US" | ||
|
||
|
||
@api | ||
Scenario: Adding product to wishlisht on both channels | ||
Given I change my current channel to "Web-EU" | ||
And user has a wishlist in "Web-EU" | ||
When user adds product "Leprechaun's Silver" to the wishlist in "Web-EU" | ||
Then user should have product "Leprechaun's Silver" in the wishlist | ||
Then I change my current channel to "Web-US" | ||
And user has a wishlist in "Web-US" | ||
When user adds product "Leprechaun's Gold" to the wishlist in "Web-US" | ||
Then user should have product "Leprechaun's Gold" in the wishlist | ||
|
||
@api | ||
Scenario: Adding product to wishlist on both channels and removing from one channel. | ||
Given I change my current channel to "Web-EU" | ||
And user has a wishlist in "Web-EU" | ||
When user adds product "Leprechaun's Silver" to the wishlist in "Web-EU" | ||
Then user should have product "Leprechaun's Silver" in the wishlist | ||
Then I change my current channel to "Web-US" | ||
And user has a wishlist in "Web-US" | ||
When user adds product "Leprechaun's Gold" to the wishlist in "Web-US" | ||
Then user should have product "Leprechaun's Gold" in the wishlist | ||
Then user removes product "Leprechaun's Gold" from the wishlist | ||
Then user should have an empty wishlist | ||
And I change my current channel to "Web-EU" | ||
Then user should have product "Leprechaun's Silver" in the wishlist on "Web-EU" |
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
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
Oops, something went wrong.