|
18 | 18 | <testCaseId value="MC-132"/>
|
19 | 19 | <group value="CatalogSearch"/>
|
20 | 20 | </annotations>
|
21 |
| - <before> |
22 |
| - <createData entity="ApiProductWithDescription" stepKey="createProductOne"/> |
23 |
| - </before> |
24 |
| - <after> |
25 |
| - <deleteData createDataKey="createProductOne" stepKey="deleteProductOne"/> |
26 |
| - </after> |
27 |
| - |
28 | 21 | <actionGroup ref="GoToStoreViewAdvancedCatalogSearchActionGroup" stepKey="GoToStoreViewAdvancedCatalogSearchActionGroup"/>
|
29 | 22 | <actionGroup ref="StorefrontAdvancedCatalogSearchByProductNameActionGroup" stepKey="search">
|
30 | 23 | <argument name="name" value="$$createProductOne.name$$"/>
|
31 | 24 | </actionGroup>
|
32 | 25 | <actionGroup ref="StorefrontCheckAdvancedSearchResultActionGroup" stepKey="StorefrontCheckAdvancedSearchResult"/>
|
33 | 26 | <see userInput="1 item" selector="{{StorefrontCatalogSearchAdvancedResultMainSection.itemFound}}" stepKey="see"/>
|
| 27 | + <see userInput="$$createProductOne.name$$" selector="{{StorefrontCatalogSearchAdvancedResultMainSection.productName}}" stepKey="seeProductName"/> |
34 | 28 | </test>
|
35 |
| - <test name="AdvanceCatalogSearchSimpleProductBySkuTest"> |
| 29 | + <test name="AdvanceCatalogSearchSimpleProductBySkuTest" extends="AdvanceCatalogSearchSimpleProductByNameTest"> |
36 | 30 | <annotations>
|
37 | 31 | <features value="CatalogSearch"/>
|
38 | 32 | <stories value="Advanced Catalog Product Search for all product types"/>
|
|
42 | 36 | <testCaseId value="MC-133"/>
|
43 | 37 | <group value="CatalogSearch"/>
|
44 | 38 | </annotations>
|
45 |
| - <before> |
46 |
| - <createData entity="ApiProductWithDescription" stepKey="createProductOne"/> |
47 |
| - </before> |
48 |
| - <after> |
49 |
| - <deleteData createDataKey="createProductOne" stepKey="deleteProductOne"/> |
50 |
| - </after> |
51 |
| - |
52 |
| - <actionGroup ref="GoToStoreViewAdvancedCatalogSearchActionGroup" stepKey="GoToStoreViewAdvancedCatalogSearchActionGroup"/> |
53 | 39 | <actionGroup ref="StorefrontAdvancedCatalogSearchByProductSkuActionGroup" stepKey="search">
|
54 | 40 | <argument name="sku" value="$$createProductOne.sku$$"/>
|
55 | 41 | </actionGroup>
|
56 |
| - <actionGroup ref="StorefrontCheckAdvancedSearchResultActionGroup" stepKey="StorefrontCheckAdvancedSearchResult"/> |
57 |
| - <see userInput="1 item" selector="{{StorefrontCatalogSearchAdvancedResultMainSection.itemFound}}" stepKey="see"/> |
58 |
| - <see userInput="$$createProductOne.name$$" selector="{{StorefrontCatalogSearchAdvancedResultMainSection.productName}}" stepKey="seeProductName"/> |
59 | 42 | </test>
|
60 |
| - |
61 |
| - <test name="AdvanceCatalogSearchSimpleProductByDescriptionTest"> |
| 43 | + <test name="AdvanceCatalogSearchSimpleProductByDescriptionTest" extends="AdvanceCatalogSearchSimpleProductByNameTest"> |
62 | 44 | <annotations>
|
63 | 45 | <features value="CatalogSearch"/>
|
64 | 46 | <stories value="Advanced Catalog Product Search for all product types"/>
|
|
68 | 50 | <testCaseId value="MC-134"/>
|
69 | 51 | <group value="CatalogSearch"/>
|
70 | 52 | </annotations>
|
71 |
| - <before> |
72 |
| - <createData entity="ApiProductWithDescription" stepKey="createProductOne"/> |
73 |
| - </before> |
74 |
| - <after> |
75 |
| - <deleteData createDataKey="createProductOne" stepKey="deleteProductOne"/> |
76 |
| - </after> |
77 |
| - |
78 |
| - <actionGroup ref="GoToStoreViewAdvancedCatalogSearchActionGroup" stepKey="GoToStoreViewAdvancedCatalogSearchActionGroup"/> |
79 | 53 | <actionGroup ref="StorefrontAdvancedCatalogSearchByDescriptionActionGroup" stepKey="search">
|
80 | 54 | <argument name="description" value="$$createProductOne.custom_attributes[description]$$"/>
|
81 | 55 | </actionGroup>
|
82 |
| - <actionGroup ref="StorefrontCheckAdvancedSearchResultActionGroup" stepKey="StorefrontCheckAdvancedSearchResult"/> |
83 |
| - <see userInput="1 item" selector="{{StorefrontCatalogSearchAdvancedResultMainSection.itemFound}}" stepKey="see"/> |
84 |
| - <see userInput="$$createProductOne.name$$" selector="{{StorefrontCatalogSearchAdvancedResultMainSection.productName}}" stepKey="seeProductName"/> |
85 | 56 | </test>
|
86 |
| - |
87 |
| - <test name="AdvanceCatalogSearchSimpleProductByShortDescriptionTest"> |
| 57 | + <test name="AdvanceCatalogSearchSimpleProductByShortDescriptionTest" extends="AdvanceCatalogSearchSimpleProductByNameTest"> |
88 | 58 | <annotations>
|
89 | 59 | <features value="CatalogSearch"/>
|
90 | 60 | <stories value="Advanced Catalog Product Search for all product types"/>
|
|
94 | 64 | <testCaseId value="MC-135"/>
|
95 | 65 | <group value="CatalogSearch"/>
|
96 | 66 | </annotations>
|
97 |
| - <before> |
98 |
| - <createData entity="ApiProductWithDescription" stepKey="createProductOne"/> |
99 |
| - </before> |
100 |
| - <after> |
101 |
| - <deleteData createDataKey="createProductOne" stepKey="deleteProductOne"/> |
102 |
| - </after> |
103 |
| - |
104 |
| - <actionGroup ref="GoToStoreViewAdvancedCatalogSearchActionGroup" stepKey="GoToStoreViewAdvancedCatalogSearchActionGroup"/> |
105 | 67 | <actionGroup ref="StorefrontAdvancedCatalogSearchByShortDescriptionActionGroup" stepKey="search">
|
106 | 68 | <argument name="shortDescription" value="$$createProductOne.custom_attributes[short_description]$$"/>
|
107 | 69 | </actionGroup>
|
108 |
| - <actionGroup ref="StorefrontCheckAdvancedSearchResultActionGroup" stepKey="StorefrontCheckAdvancedSearchResult"/> |
109 |
| - <see userInput="1 item" selector="{{StorefrontCatalogSearchAdvancedResultMainSection.itemFound}}" stepKey="see"/> |
110 |
| - <see userInput="$$createProductOne.name$$" selector="{{StorefrontCatalogSearchAdvancedResultMainSection.productName}}" stepKey="seeProductName"/> |
111 | 70 | </test>
|
112 |
| - |
113 |
| - <test name="AdvanceCatalogSearchSimpleProductByPriceTest"> |
| 71 | + <test name="AdvanceCatalogSearchSimpleProductByPriceTest" extends="AdvanceCatalogSearchSimpleProductByNameTest"> |
114 | 72 | <annotations>
|
115 | 73 | <features value="CatalogSearch"/>
|
116 | 74 | <stories value="Advanced Catalog Product Search for all product types"/>
|
|
120 | 78 | <testCaseId value="MC-136"/>
|
121 | 79 | <group value="CatalogSearch"/>
|
122 | 80 | </annotations>
|
123 |
| - <before> |
124 |
| - <createData entity="ApiProductWithDescription" stepKey="createProductOne"/> |
125 |
| - </before> |
126 |
| - <after> |
127 |
| - <deleteData createDataKey="createProductOne" stepKey="deleteProductOne"/> |
128 |
| - </after> |
129 |
| - |
130 |
| - <actionGroup ref="GoToStoreViewAdvancedCatalogSearchActionGroup" stepKey="GoToStoreViewAdvancedCatalogSearchActionGroup"/> |
131 | 81 | <actionGroup ref="StorefrontAdvancedCatalogSearchByProductNameAndPriceActionGroup" stepKey="search">
|
132 | 82 | <argument name="name" value="$$createProductOne.name$$"/>
|
133 | 83 | <argument name="priceFrom" value="$$createProductOne.price$$"/>
|
134 | 84 | <argument name="priceTo" value="$$createProductOne.price$$"/>
|
135 | 85 | </actionGroup>
|
136 |
| - <actionGroup ref="StorefrontCheckAdvancedSearchResultActionGroup" stepKey="StorefrontCheckAdvancedSearchResult"/> |
137 |
| - <see userInput="1 item" selector="{{StorefrontCatalogSearchAdvancedResultMainSection.itemFound}}" stepKey="see"/> |
138 |
| - <see userInput="$$createProductOne.name$$" selector="{{StorefrontCatalogSearchAdvancedResultMainSection.productName}}" stepKey="seeProductName"/> |
139 | 86 | </test>
|
140 | 87 | </tests>
|
0 commit comments