Skip to content

Commit 88b58a0

Browse files
committed
refactored
1 parent 55b0fc2 commit 88b58a0

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

app/code/Magento/Catalog/Test/Mftf/ActionGroup/AdminSelectAttributeSetOnEditProductPageActionGroup.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1111
<actionGroup name="AdminSelectAttributeSetOnEditProductPageActionGroup">
1212
<annotations>
13-
<description></description>
13+
<description>Selects the specified value from the Attribute Set dropdown.
14+
The Edit Product Page should be opened prior to Action Group execution</description>
1415
</annotations>
1516
<arguments>
1617
<argument name="attributeSet" type="string"/>

app/code/Magento/Catalog/Test/Mftf/Test/AdminChangeProductAttributeSetTest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@
6363
<actionGroup ref="AdminSelectAttributeSetOnEditProductPageActionGroup" stepKey="startEditAttrSet">
6464
<argument name="attributeSet" value="$$createAttributeSet.attribute_set_name$$"/>
6565
</actionGroup>
66+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="searchForAttrSet"/>
67+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="selectAttrSet"/>
6668

6769
<waitForText userInput="$$createProductAttribute.default_frontend_label$$" stepKey="seeAttributeInForm"/>
6870
</test>

app/code/Magento/Catalog/Test/Mftf/Test/AdminMassUpdateProductAttributesStoreViewScopeTest/AdminMassUpdateProductAttributesStoreViewScopeTest.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@
5252
<!-- Update attribute -->
5353
<click selector="{{AdminEditProductAttributesSection.ChangeAttributeDescriptionToggle}}" stepKey="toggleToChangeDescription"/>
5454
<fillField selector="{{AdminEditProductAttributesSection.AttributeDescription}}" userInput="Updated $$createProductOne.custom_attributes[description]$$" stepKey="fillAttributeDescriptionField"/>
55-
<actionGroup ref="AdminSaveProductsMassAttributesUpdateActionGroup" stepKey="save"/>
56-
<!-- <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForSuccessMessage"/> -->
57-
<!-- <click selector="{{AdminEditProductAttributesSection.Save}}" stepKey="save"/> -->
55+
<click selector="{{AdminEditProductAttributesSection.Save}}" stepKey="save"/>
5856
<see selector="{{AdminProductMessagesSection.successMessage}}" userInput="Message is added to queue" stepKey="seeAttributeUpateSuccessMsg"/>
5957

6058

app/code/Magento/ConfigurableProduct/Test/Mftf/Test/AdminConfigurableProductUpdateTest/AdminConfigurableProductBulkUpdateTest.xml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,8 @@
5959
<!-- Update the description -->
6060
<click selector="{{AdminUpdateAttributesSection.toggleDescription}}" stepKey="clickToggleDescription"/>
6161
<fillField selector="{{AdminUpdateAttributesSection.description}}" userInput="MFTF automation!" stepKey="fillDescription"/>
62-
<actionGroup ref="AdminSaveProductsMassAttributesUpdateActionGroup" stepKey="clickSave"/>
63-
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForSuccessMessage"/>
64-
65-
<!-- <click selector="{{AdminEditProductAttributesSection.Save}}" stepKey="clickSave"/>
66-
<waitForElementVisible selector="{{AdminProductMessagesSection.successMessage}}" time="60" stepKey="waitForSuccessMessage"/> -->
62+
<click selector="{{AdminEditProductAttributesSection.Save}}" stepKey="clickSave"/>
63+
<waitForElementVisible selector="{{AdminProductMessagesSection.successMessage}}" time="60" stepKey="waitForSuccessMessage"/>
6764
<see selector="{{AdminProductMessagesSection.successMessage}}" userInput="Message is added to queue" stepKey="seeAttributeUpdateSuccessMsg"/>
6865

6966
<!-- Apply changes -->

0 commit comments

Comments
 (0)