-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
226 additions
and
14 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,152 @@ | ||
@site_wide_searching_products @sylius113 | ||
Feature: Site-wide products search | ||
In order to quickly find products I want to buy | ||
As a Customer | ||
I want to be able to search products across the entire catalog | ||
|
||
Background: | ||
Given the store operates on a channel named "Web-US" in "USD" currency | ||
And the store classifies its products as "Cars" | ||
And the store classifies its products as "Motorbikes" | ||
And the store has a select product attribute "Car Type" with values "Cabrio" and "SUV" | ||
And the store has a select product attribute "Motorbike Type" with values "Enduro" and "Naked" | ||
And there is a product named "BMW Z4" in the store | ||
And this product's price is "$42,670.00" | ||
And this product has select attribute "Car Type" with value "Cabrio" | ||
And this product has a text attribute "Color" with value "Red" | ||
And this product has option "Supply" with values "Gasoline" and "Diesel" | ||
And this product is available in "Gasoline" supply priced at "$42,670.00" | ||
And this product is available in "Diesel" supply priced at "$45,670.00" | ||
And this product belongs to "Cars" | ||
And there is a product named "Volvo XC90" in the store | ||
And this product's price is "$64,505.80" | ||
And this product has select attribute "Car Type" with value "SUV" | ||
And this product has a text attribute "Color" with value "Black" | ||
And this product belongs to "Cars" | ||
And there is a product named "BMW 5 Series" in the store | ||
And this product's price is "$52,070.00" | ||
And this product has select attribute "Car Type" with value "Cabrio" | ||
And this product has a text attribute "Color" with value "Red" | ||
And this product belongs to "Cars" | ||
And there is a product named "Lamborghini Aventador" in the store | ||
And this product's price is "$450,000.00" | ||
And this product has a text attribute "Color" with value "Yellow" | ||
And this product belongs to "Cars" | ||
And there is a product named "BMW GS" in the store | ||
And this product's price is "$18,070.00" | ||
And this product has select attribute "Motorbike Type" with value "Enduro" | ||
And this product has a text attribute "Color" with value "Grey" | ||
And this product belongs to "Motorbikes" | ||
And there is a product named "Ducati Monster" in the store | ||
And this product's price is "$14,995.00" | ||
And this product has select attribute "Motorbike Type" with value "Naked" | ||
And this product has a text attribute "Color" with value "Black" | ||
And this product's short description is: | ||
""" | ||
This is the Ducati Monster which is much better than any other BMW motorbike. | ||
""" | ||
And this product belongs to "Motorbikes" | ||
And there is a product named "Honda Africa Twin" in the store | ||
And this product has select attribute "Motorbike Type" with value "Enduro" | ||
And this product has a text attribute "Color" with value "Green & White" | ||
And this product's price is "$13,490.00" | ||
And this product's description is: | ||
""" | ||
This is the Honda Africa Twin which is like the BMW GS but from Honda. | ||
""" | ||
And this product belongs to "Motorbikes" | ||
And the data is populated to Elasticsearch | ||
|
||
@ui | ||
Scenario: Searching products by name, description and short description in all taxons | ||
When I browse the search page | ||
And I search the products by "BMW" phrase in the site-wide search box | ||
Then I should see the product "BMW Z4" in the search results | ||
And I should see the product "BMW GS" in the search results | ||
And I should see the product "BMW 5 Series" in the search results | ||
And I should see the product "Honda Africa Twin" in the search results | ||
And I should see the product "Ducati Monster" in the search results | ||
|
||
@ui | ||
Scenario: Searching products from the home page | ||
When I open the home page | ||
And I search the products by "Lamborghini" phrase in the site-wide search box | ||
Then I should see the product "Lamborghini Aventador" in the search results | ||
|
||
@ui | ||
Scenario: Searching products and viewing price aggregations | ||
When I browse the search page | ||
And I search the products by "BMW" phrase in the site-wide search box | ||
Then I should see the following intervals in the price filter: | ||
""" | ||
$10,000.00 - $20,000.00 (3) | ||
$40,000.00 - $50,000.00 (1) | ||
$50,000.00 - $60,000.00 (1) | ||
""" | ||
And I should see 5 products in search results | ||
|
||
@ui | ||
Scenario: Searching products and viewing taxon aggregations | ||
When I browse the search page | ||
And I search the products by "BMW" phrase in the site-wide search box | ||
Then I should see the following options in the taxon filter: | ||
""" | ||
Motorbikes (3) | ||
Cars (2) | ||
""" | ||
And I should see 5 products in search results | ||
|
||
@ui | ||
Scenario: Searching products and filtering by price | ||
When I browse the search page | ||
And I search the products by "BMW" phrase in the site-wide search box | ||
And I filter by price interval "$10,000.00 - $20,000.00" | ||
And I filter by price interval "$50,000.00 - $60,000.00" | ||
Then I should see 4 products in search results | ||
|
||
@ui | ||
Scenario: Searching products and filtering by taxon | ||
When I browse the search page | ||
And I search the products by "BMW" phrase in the site-wide search box | ||
And I filter by taxon "Motorbikes" | ||
Then I should see 3 products in search results | ||
|
||
@ui | ||
Scenario: Searching products and viewing car type and motorbike type select attributes aggregations | ||
When I browse the search page | ||
And I search the products by "BMW or Volvo" phrase in the site-wide search box | ||
Then I should see the following options in the "Car Type" attribute filter: | ||
""" | ||
Cabrio (2) | ||
Suv (1) | ||
""" | ||
And I should see the following options in the "Motorbike Type" attribute filter: | ||
""" | ||
Enduro (2) | ||
Naked (1) | ||
""" | ||
And I should see 6 products in search results | ||
|
||
@ui | ||
Scenario: Searching products and viewing color text attribute aggregations | ||
When I browse the search page | ||
And I search the products by "BMW or Volvo" phrase in the site-wide search box | ||
Then I should see the following options in the "Color" attribute filter: | ||
""" | ||
Black (2) | ||
Red (2) | ||
Green & White (1) | ||
Grey (1) | ||
""" | ||
And I should see 6 products in search results | ||
|
||
@ui | ||
Scenario: Searching products and viewing supply option aggregations | ||
When I browse the search page | ||
And I search the products by "BMW or Volvo" phrase in the site-wide search box | ||
Then I should see the following options in the "Supply" option filter: | ||
""" | ||
Diesel (1) | ||
Gasoline (1) | ||
""" | ||
And I should see 6 products in search results |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"dependencies": { | ||
"@babel/polyfill": "^7.0.0", | ||
"chart.js": "^3.7.1", | ||
"jquery": "^3.5.0", | ||
"jquery.dirtyforms": "^2.0.0", | ||
"lightbox2": "^2.9.0", | ||
"semantic-ui-css": "^2.2.0", | ||
"slick-carousel": "^1.8.1" | ||
}, | ||
"devDependencies": { | ||
"@symfony/webpack-encore": "^1.6.1", | ||
"babel-core": "^6.26.3", | ||
"babel-plugin-external-helpers": "^6.22.0", | ||
"babel-plugin-module-resolver": "^3.1.1", | ||
"babel-plugin-transform-object-rest-spread": "^6.26.0", | ||
"babel-preset-env": "^1.7.0", | ||
"babel-register": "^6.26.0", | ||
"dedent": "^0.7.0", | ||
"eslint": "^4.19.1", | ||
"eslint-config-airbnb-base": "^12.1.0", | ||
"eslint-import-resolver-babel-module": "^4.0.0", | ||
"eslint-plugin-import": "^2.11.0", | ||
"merge-stream": "^1.0.0", | ||
"sass": "^1.39.2", | ||
"sass-loader": "^12.1.0" | ||
}, | ||
"scripts": { | ||
"dev": "yarn encore dev", | ||
"watch": "yarn encore dev --watch", | ||
"prod": "yarn encore prod", | ||
"lint": "yarn lint:js", | ||
"lint:js": "eslint gulpfile.babel.js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/Sylius/Sylius.git" | ||
}, | ||
"author": "Paweł Jędrzejewski", | ||
"license": "MIT" | ||
} |