forked from Sylius/Sylius
-
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.
* 1.3: Apply coding standard fixes Apply coding standard fixes Sylius#9699 🍌 -> 🥥 Revert int strictness to just pass strings Make tests passing Fix build Behat test for assigning main taxon on new product Sylius#9699 Fix for viewing products when they belong to a taxon and to one of children taxon
- Loading branch information
Showing
11 changed files
with
164 additions
and
15 deletions.
There are no files selected for viewing
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
34 changes: 34 additions & 0 deletions
34
features/product/managing_products/select_taxons_for_new_product.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,34 @@ | ||
@managing_products | ||
Feature: Select taxon for a new product | ||
In order to specify in which taxons a product is available | ||
As an Administrator | ||
I want to be able to select taxons for a new product | ||
|
||
Background: | ||
Given the store operates on a single channel in "United States" | ||
And the store classifies its products as "T-Shirts", "Accessories", "Funny" and "Sad" | ||
And I am logged in as an administrator | ||
And I am using "English (United Kingdom)" locale for my panel | ||
|
||
@ui @javascript | ||
Scenario: Specifying main taxon for configurable product | ||
Given I want to create a new configurable product | ||
When I choose main taxon "Sad" | ||
And I name it "Gentleman Jack" in "English (United States)" | ||
And I specify its code as "WHISKEY_GENTLEMEN" | ||
And I set its slug to "whiskey/gentleman-jack" in "English (United States)" | ||
And I add it | ||
Then I should be notified that it has been successfully created | ||
And main taxon of product "Gentleman Jack" should be "Sad" | ||
|
||
@ui @javascript | ||
Scenario: Specifying main taxon for simple product | ||
Given I want to create a new simple product | ||
When I choose main taxon "Sad" | ||
And I name it "Mansion of Madness" in "English (United States)" | ||
And I specify its code as "BOARD_MANSION_OF_MADNESS" | ||
And I set its price to "$100.00" for "United States" channel | ||
And I set its slug to "mom-board-game" in "English (United States)" | ||
And I add it | ||
Then I should be notified that it has been successfully created | ||
And main taxon of product "Mansion of Madness" should be "Sad" |
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
38 changes: 38 additions & 0 deletions
38
features/product/viewing_products/viewing_products_from_taxon_and_children.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,38 @@ | ||
@viewing_products | ||
Feature: Viewing products from taxon children | ||
In order to browse products from general taxons | ||
As a Visitor | ||
I want to be able to view products from taxon and from taxon children | ||
|
||
Background: | ||
Given the store has currency "Euro" | ||
And the store operates on a channel named "Poland" | ||
And the store classifies its products as "T-Shirts" | ||
And the "T-Shirts" taxon has children taxon "Men" and "Women" | ||
And the store has a product "T-Shirt Coconut" available in "Poland" channel | ||
And this product belongs to "T-Shirts" | ||
And the store has a product "T-Shirt Banana For Men" available in "Poland" channel | ||
And this product belongs to "T-Shirts" | ||
And this product belongs to "Men" | ||
And the store has a product "T-Shirt Apple" available in "Poland" channel | ||
And this product belongs to "T-Shirts" | ||
And this product belongs to "Men" | ||
And the store has a product "T-Shirt Pear" available in "Poland" channel | ||
And this product belongs to "T-Shirts" | ||
And this product belongs to "Men" | ||
And the store has a product "T-Shirt Watermelon" available in "Poland" channel | ||
And this product belongs to "T-Shirts" | ||
And this product belongs to "Men" | ||
And the store has a product "T-Shirt Lemon" available in "Poland" channel | ||
And this product belongs to "T-Shirts" | ||
And this product belongs to "Men" | ||
|
||
@ui | ||
Scenario: Viewing products from taxon children | ||
When I browse products from taxon "T-Shirts" | ||
Then I should see the product "T-Shirt Coconut" | ||
And I should see the product "T-Shirt Banana For Men" | ||
And I should see the product "T-Shirt Apple" | ||
And I should see the product "T-Shirt Pear" | ||
And I should see the product "T-Shirt Watermelon" | ||
And I should see the product "T-Shirt Lemon" |
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