@@ -6,58 +6,62 @@ Feature: Filtering products
66
77 Background :
88 Given the store operates on a channel named "Web-US" in "USD" currency
9- And there are 15 t-shirts in the store
9+ And the store classifies its products as "T-Shirts"
10+ And there are 45 t-shirts in the store
11+ And these products belongs to "T-Shirts" taxon
1012 And 5 of these products are priced between "$10" and "$15"
1113 And 10 of these products are priced between "$15" and "$35"
12- And these "products" have "size" option
13- And 3 of these products have "size" option with "S" value
14- And 5 of these products have "size" option with "M" value
15- And 7 of these products have "size" option with "M" value
16- And these "products" have "color" attribute
17- And 3 of these products have "color" attribute with "Red" value
18- And 5 of these products have "color" attribute with "Green" value
19- And 7 of these products have "color" attribute with "Blue" value
14+ And these products have "Size" option with values "S,M,L"
15+ And 3 of these products have "Size" option with "S" value
16+ And 5 of these products have "Size" option with "M" value
17+ And 7 of these products have "Size" option with "L" value
18+ And these products have text attribute "color"
19+ And 3 of these products have text attribute "color" with "Red" value
20+ And 5 of these products have text attribute "color" with "Green" value
21+ And 7 of these products have text attribute "color" with "Blue" value
22+ And the data is populated to elasticsearch
2023
2124 @ui
2225 Scenario : Filtering products by name
23- When I go to the shop products page
26+ When I go to the shop products page for "T-Shirts" taxon
2427 And I search the products by "shirt" phase
25- Then I should see 9 products on the first page
26- And I should see 6 products on the second page
28+ Then I should see 9 products on 1 page
29+ And I should see 9 products on 2 page
30+ And I should see 9 products on 3 page
31+ And I should see 9 products on 4 page
32+ And I should see 9 products on 5 page
2733
2834 @ui
2935 Scenario : Filtering products by options
30- When I go to the shop products page
36+ When I go to the shop products page for "T-Shirts" taxon
3137 And I filter products by "S" "Size" option
3238 And I filter products by "M" "Size" option
3339 Then I should see 8 products on the page
3440
3541 @ui
3642 Scenario : Filtering products by attributes
37- When I go to the shop products page
38- And I filter products by "Red" "Color " attribute
39- And I filter products by "Green" "Color " attribute
43+ When I go to the shop products page for "T-Shirts" taxon
44+ And I filter products by "Red" "color " attribute
45+ And I filter products by "Green" "color " attribute
4046 Then I should see 8 products on the page
4147
4248 @ui
4349 Scenario : Filtering products by price
44- When I go to the shop products page
50+ When I go to the shop products page for "T-Shirts" taxon
4551 And I filter product price between 10 and 15
4652 Then I should see 5 products on the page
4753
4854 @ui
4955 Scenario : Changing limit from 9 to 18
50- Given there are 40 more products in the store
51- When I go to the products page
56+ When I go to the shop products page for "T-Shirts" taxon
5257 And I change the limit to 18
53- Then I should see 18 products on the first page
54- And I should see 18 products on the second page
55- And I should see 9 products on the third page
58+ Then I should see 18 products on 1 page
59+ And I should see 18 products on 2 page
60+ And I should see 9 products on 3 page
5661
5762 @ui
5863 Scenario : Changing limit from 9 to 36
59- Given there are 40 more products in the store
60- When I go to the products page
64+ When I go to the shop products page for "T-Shirts" taxon
6165 And I change the limit to 36
62- Then I should see 36 products on the first page
63- And I should see 9 products on the second page
66+ Then I should see 36 products on 1 page
67+ And I should see 9 products on 2 page
0 commit comments