Skip to content

Commit d76960c

Browse files
committed
MC-249: Guest customer should be able to search configurable product by attributes of child products
- Adjust based on feedback
1 parent 1bdf72b commit d76960c

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/ConfigurableProduct/Test/StorefrontConfigurableProductChildSearchTest.xml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<description value="Guest customer should be able to search configurable product by attributes of child products"/>
1717
<severity value="MAJOR"/>
1818
<testCaseId value="MC-249"/>
19-
<group value="Levi"/>
19+
<group value="ConfigurableProduct"/>
2020
</annotations>
2121
<before>
2222
<!-- TODO: This should be converted to an actionGroup once MQE-993 is fixed. -->
@@ -114,6 +114,20 @@
114114
</createData>
115115

116116
<actionGroup ref="LoginAsAdmin" stepKey="login"/>
117+
118+
<!-- Go to the product page for the first product -->
119+
<amOnPage stepKey="goToProductGrid" url="{{ProductCatalogPage.url}}"/>
120+
<waitForPageLoad stepKey="waitForProductGridLoad"/>
121+
<actionGroup stepKey="searchForSimpleProduct" ref="filterProductGridBySku2">
122+
<argument name="sku" value="$$createConfigChildProduct1.sku$$"/>
123+
</actionGroup>
124+
<actionGroup stepKey="openProductEditPage" ref="openProducForEditByClickingRowXColumnYInProductGrid"/>
125+
126+
<!-- Edit the attribute for the first simple product -->
127+
<selectOption stepKey="editSelectAttribute" selector="{{ModifyAttributes.nthExistingAttribute($$createConfigProductAttributeSelect.default_frontend_label$$)}}" userInput="$$createConfigProductAttributeSelectOption1.option[store_labels][0][label]$$"/>
128+
<scrollToTopOfPage stepKey="scrollToTop"/>
129+
<click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="saveProduct"/>
130+
<seeElement selector="{{AdminProductMessagesSection.successMessage}}" stepKey="assertSaveMessageSuccess"/>
117131
</before>
118132

119133
<after>
@@ -127,20 +141,6 @@
127141
<deleteData createDataKey="createCategory" stepKey="deleteApiCategory"/>
128142
</after>
129143

130-
<!-- Add a description to the first simple product -->
131-
<amOnPage stepKey="goToProductGrid" url="{{ProductCatalogPage.url}}"/>
132-
<waitForPageLoad stepKey="waitForProductGridLoad"/>
133-
<actionGroup stepKey="searchForSimpleProduct" ref="filterProductGridBySku2">
134-
<argument name="sku" value="$$createConfigChildProduct1.sku$$"/>
135-
</actionGroup>
136-
<actionGroup stepKey="openProductEditPage" ref="openProducForEditByClickingRowXColumnYInProductGrid"/>
137-
138-
<!-- Edit the attribute for the first simple product -->
139-
<selectOption stepKey="editSelectAttribute" selector="{{ModifyAttributes.nthExistingAttribute($$createConfigProductAttributeSelect.default_frontend_label$$)}}" userInput="$$createConfigProductAttributeSelectOption1.option[store_labels][0][label]$$"/>
140-
<scrollToTopOfPage stepKey="scrollToTop"/>
141-
<click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="saveProduct"/>
142-
<seeElement selector="{{AdminProductMessagesSection.successMessage}}" stepKey="assertSaveMessageSuccess"/>
143-
144144
<!-- Quick search the storefront for the first attribute option -->
145145
<amOnPage stepKey="goToStoreFront" url="{{StorefrontHomePage.url}}"/>
146146
<waitForPageLoad stepKey="waitForStorefront"/>

0 commit comments

Comments
 (0)