Skip to content

Commit 7da9d82

Browse files
committed
MAGETWO-93217: Automate with MFTF Configurable Product is searchable by Attributes of child Products
1 parent 00187a0 commit 7da9d82

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/code/Magento/Catalog/Test/Mftf/Section/AdminProductAttributeSetSection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
</section>
1919
<section name="AdminModifyAttributesSection">
2020
<!-- Parameter is the attribute name -->
21-
<element name="dropDown" type="select" selector="//*[text()='{{attributeName}}']/../..//select" parameterized="true"/>
21+
<element name="dropDownAttributeByName" type="select" selector="//*[text()='{{attributeName}}']/../..//select" parameterized="true"/>
2222
</section>
2323
</sections>

app/code/Magento/ConfigurableProduct/Test/Mftf/Test/StorefrontConfigurableProductChildSearchTest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
<click selector="{{AdminProductGridSection.productGridXRowYColumnButton('1', '2')}}" stepKey="openProductForEdit"/>
131131
<waitForPageLoad time="30" stepKey="waitForPageLoad1"/>
132132
<!-- Edit the attribute for the first simple product -->
133-
<selectOption selector="{{AdminModifyAttributesSection.dropDown($$createConfigProductAttributeSelect.default_frontend_label$$)}}" userInput="$$createConfigProductAttributeSelectOption1.option[store_labels][0][label]$$" stepKey="editSelectAttribute"/>
133+
<selectOption selector="{{AdminModifyAttributesSection.dropDownAttributeByName($$createConfigProductAttributeSelect.default_frontend_label$$)}}" userInput="$$createConfigProductAttributeSelectOption1.option[store_labels][0][label]$$" stepKey="editSelectAttribute"/>
134134
<scrollToTopOfPage stepKey="scrollToTop"/>
135135
<click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="saveProduct"/>
136136
<seeElement selector="{{AdminProductMessagesSection.successMessage}}" stepKey="assertSaveMessageSuccess"/>
@@ -144,7 +144,7 @@
144144
<click selector="{{AdminProductGridSection.productGridXRowYColumnButton('1', '2')}}" stepKey="openProductForEdit2"/>
145145
<waitForPageLoad time="30" stepKey="waitForPageLoad2"/>
146146
<!-- Edit the attribute for the first second product -->
147-
<selectOption selector="{{AdminModifyAttributesSection.dropDown($$createConfigProductAttributeMultiSelect.default_frontend_label$$)}}" userInput="$$createConfigProductAttributeOption2Multiselect.option[store_labels][0][label]$$" stepKey="editSelectAttribute2"/>
147+
<selectOption selector="{{AdminModifyAttributesSection.dropDownAttributeByName($$createConfigProductAttributeMultiSelect.default_frontend_label$$)}}" userInput="$$createConfigProductAttributeOption2Multiselect.option[store_labels][0][label]$$" stepKey="editSelectAttribute2"/>
148148
<scrollToTopOfPage stepKey="scrollToTop2"/>
149149
<click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="saveProduct2"/>
150150
<seeElement selector="{{AdminProductMessagesSection.successMessage}}" stepKey="assertSaveMessageSuccess2"/>

0 commit comments

Comments
 (0)