Skip to content

Commit 2267f37

Browse files
committed
MC-132: add advance catalog search for simple product tests.
- search by product name - search by product sku - search by product description - search by product short description - search by price (cherry picked from commit 8adb74c)
1 parent b4f59cd commit 2267f37

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/CatalogSearch/Section/StorefrontCatalogSearchAdvancedResultMainSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@
1616
<element name="productCount" type="text" selector="#toolbar-amount"/>
1717
<element name="message" type="text" selector="div.message div"/>
1818
<element name="itemFound" type="text" selector=".search.found>strong"/>
19+
<element name="productName" type="text" selector=".product.name.product-item-name>a"/>
1920
</section>
2021
</sections>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/CatalogSearch/Test/AdvanceCatalogSearchSimpleProductsTest.xml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
<annotations>
1313
<features value="CatalogSearch"/>
1414
<stories value="Advanced catalog search for simple products"/>
15-
<title value="Advanced catalog search for simple products by product name"/>
16-
<description value="Advanced catalog search for simple products by product name"/>
15+
<title value="Guest customer should be able to find simple products by product name in advanced catalog search"/>
16+
<description value="Guest customer should be able to find simple products by product name in advanced catalog search"/>
1717
<severity value="MAJOR"/>
1818
<testCaseId value="MC-132"/>
1919
<group value="CatalogSearch"/>
@@ -36,8 +36,8 @@
3636
<annotations>
3737
<features value="CatalogSearch"/>
3838
<stories value="Advanced catalog search for simple products"/>
39-
<title value="Advanced catalog search for simple products by product sku"/>
40-
<description value="Advanced catalog search for simple products by product sku"/>
39+
<title value="Guest customer should be able to find simple products by product sku in advanced catalog search"/>
40+
<description value="Guest customer should be able to find simple products by product sku in advanced catalog search"/>
4141
<severity value="MAJOR"/>
4242
<testCaseId value="MC-133"/>
4343
<group value="CatalogSearch"/>
@@ -55,14 +55,15 @@
5555
</actionGroup>
5656
<actionGroup ref="StorefrontCheckAdvancedSearchResultActionGroup" stepKey="StorefrontCheckAdvancedSearchResult"/>
5757
<see userInput="1 item" selector="{{StorefrontCatalogSearchAdvancedResultMainSection.itemFound}}" stepKey="see"/>
58+
<see userInput="$$createProductOne.name$$" selector="{{StorefrontCatalogSearchAdvancedResultMainSection.productName}}" stepKey="seeProductName"/>
5859
</test>
5960

6061
<test name="AdvanceCatalogSearchSimpleProductByDescriptionTest">
6162
<annotations>
6263
<features value="CatalogSearch"/>
6364
<stories value="Advanced catalog search for simple products"/>
64-
<title value="Advanced catalog search for simple products by product description"/>
65-
<description value="Advanced catalog search for simple products by product description"/>
65+
<title value="Guest customer should be able to find simple products by product description in advanced catalog search"/>
66+
<description value="Guest customer should be able to find simple products by product description in advanced catalog search"/>
6667
<severity value="MAJOR"/>
6768
<testCaseId value="MC-134"/>
6869
<group value="CatalogSearch"/>
@@ -80,14 +81,15 @@
8081
</actionGroup>
8182
<actionGroup ref="StorefrontCheckAdvancedSearchResultActionGroup" stepKey="StorefrontCheckAdvancedSearchResult"/>
8283
<see userInput="1 item" selector="{{StorefrontCatalogSearchAdvancedResultMainSection.itemFound}}" stepKey="see"/>
84+
<see userInput="$$createProductOne.name$$" selector="{{StorefrontCatalogSearchAdvancedResultMainSection.productName}}" stepKey="seeProductName"/>
8385
</test>
8486

8587
<test name="AdvanceCatalogSearchSimpleProductByShortDescriptionTest">
8688
<annotations>
8789
<features value="CatalogSearch"/>
8890
<stories value="Advanced catalog search for simple products"/>
89-
<title value="Advanced catalog search for simple products by product short description"/>
90-
<description value="Advanced catalog search for simple products by product short description"/>
91+
<title value="Guest customer should be able to find simple products by product short description in advanced catalog search"/>
92+
<description value="Guest customer should be able to find simple products by product short description in advanced catalog search"/>
9193
<severity value="MAJOR"/>
9294
<testCaseId value="MC-135"/>
9395
<group value="CatalogSearch"/>
@@ -105,14 +107,15 @@
105107
</actionGroup>
106108
<actionGroup ref="StorefrontCheckAdvancedSearchResultActionGroup" stepKey="StorefrontCheckAdvancedSearchResult"/>
107109
<see userInput="1 item" selector="{{StorefrontCatalogSearchAdvancedResultMainSection.itemFound}}" stepKey="see"/>
110+
<see userInput="$$createProductOne.name$$" selector="{{StorefrontCatalogSearchAdvancedResultMainSection.productName}}" stepKey="seeProductName"/>
108111
</test>
109112

110113
<test name="AdvanceCatalogSearchSimpleProductByPriceTest">
111114
<annotations>
112115
<features value="CatalogSearch"/>
113116
<stories value="Advanced catalog search for simple products"/>
114-
<title value="Advanced catalog search for simple products by product price"/>
115-
<description value="Advanced catalog search for simple products by price"/>
117+
<title value="Guest customer should be able to find simple products by product price in advanced catalog search"/>
118+
<description value="Guest customer should be able to find simple products by product price in advanced catalog search"/>
116119
<severity value="MAJOR"/>
117120
<testCaseId value="MC-136"/>
118121
<group value="CatalogSearch"/>
@@ -132,5 +135,6 @@
132135
</actionGroup>
133136
<actionGroup ref="StorefrontCheckAdvancedSearchResultActionGroup" stepKey="StorefrontCheckAdvancedSearchResult"/>
134137
<see userInput="1 item" selector="{{StorefrontCatalogSearchAdvancedResultMainSection.itemFound}}" stepKey="see"/>
138+
<see userInput="$$createProductOne.name$$" selector="{{StorefrontCatalogSearchAdvancedResultMainSection.productName}}" stepKey="seeProductName"/>
135139
</test>
136140
</tests>

0 commit comments

Comments
 (0)