Skip to content

Commit 9c78c4f

Browse files
committed
MC-249: Guest customer should be able to search configurable product by attributes of child products
- Make sure description is updated
1 parent ded26ea commit 9c78c4f

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Catalog/ActionGroup/AdminProductActionGroup.xml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -183,18 +183,4 @@
183183
<waitForPageLoad time="30" stepKey="waitForPageLoad"/>
184184
<see selector="{{element}}" userInput="{{expectedText}}" stepKey="AssertText"/>
185185
</actionGroup>
186-
187-
<!-- actionGroup to edit the short and long description of a product -->
188-
<!-- Assumes you are already on the product edit page -->
189-
<actionGroup name="EditProductDescription">
190-
<arguments>
191-
<argument name="description" defaultValue="sampleShortDescription"/>
192-
</arguments>
193-
<click stepKey="clickContentDropdown" selector="{{AdminProductContentSection.sectionHeader}}"/>
194-
<waitForPageLoad stepKey="dropdownWait"/>
195-
<fillField stepKey="fillShortDescription" selector="{{AdminProductContentSection.shortDescriptionTextArea}}" userInput="{{description}}"/>
196-
<scrollToTopOfPage stepKey="scrollToTop"/>
197-
<click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="saveProduct"/>
198-
<seeElement selector="{{AdminProductMessagesSection.successMessage}}" stepKey="assertSaveMessageSuccess"/>
199-
</actionGroup>
200186
</actionGroups>

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
<requiredEntity createDataKey="createConfigProductAttribute"/>
7272
<requiredEntity createDataKey="getConfigAttributeOption1"/>
7373
</createData>
74+
<updateData entity="ApiSimpleProductUpdateDescription" stepKey="updateSimpleProduct1" createDataKey="createConfigChildProduct1"/>
7475

7576
<!-- Create a simple product and give it the attribute with the second option -->
7677
<createData entity="ApiSimpleTwoHidden" stepKey="createConfigChildProduct2">
@@ -133,9 +134,6 @@
133134
<argument name="sku" value="$$createConfigChildProduct1.sku$$"/>
134135
</actionGroup>
135136
<actionGroup stepKey="openProductEditPage" ref="openProducForEditByClickingRowXColumnYInProductGrid"/>
136-
<actionGroup stepKey="editProductDescription" ref="EditProductDescription">
137-
<argument name="description" value="sampleShortDescription"/>
138-
</actionGroup>
139137

140138
<!-- Edit the attribute for the first simple product -->
141139
<selectOption stepKey="editSelectAttribute" selector="{{ModifyAttributes.nthExistingAttribute($$createConfigProductAttributeSelect.default_frontend_label$$)}}" userInput="$$createConfigProductAttributeSelectOption1.option[store_labels][0][label]$$"/>
@@ -156,7 +154,7 @@
156154
<seeElement stepKey="seeProduct2" selector="{{StorefrontCategoryProductSection.ProductTitleByName('$$createConfigProduct.name$$')}}"/>
157155

158156
<!-- Quick search the storefront for the first product description -->
159-
<fillField stepKey="searchStorefront3" selector="{{StorefrontQuickSearchSection.searchPhrase}}" userInput="sampleShortDescription"/>
157+
<fillField stepKey="searchStorefront3" selector="{{StorefrontQuickSearchSection.searchPhrase}}" userInput="'$$createConfigChildProduct1.custom_attributes[short_description]$$'"/>
160158
<click stepKey="clickSearch3" selector="{{StorefrontQuickSearchSection.searchButton}}"/>
161159
<seeElement stepKey="seeProduct3" selector="{{StorefrontCategoryProductSection.ProductTitleByName('$$createConfigProduct.name$$')}}"/>
162160
</test>

0 commit comments

Comments
 (0)