Skip to content

Commit

Permalink
refactored
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnaAPak committed Dec 15, 2020
1 parent 55b0fc2 commit 88b58a0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
<actionGroup name="AdminSelectAttributeSetOnEditProductPageActionGroup">
<annotations>
<description></description>
<description>Selects the specified value from the Attribute Set dropdown.
The Edit Product Page should be opened prior to Action Group execution</description>
</annotations>
<arguments>
<argument name="attributeSet" type="string"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@
<actionGroup ref="AdminSelectAttributeSetOnEditProductPageActionGroup" stepKey="startEditAttrSet">
<argument name="attributeSet" value="$$createAttributeSet.attribute_set_name$$"/>
</actionGroup>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="searchForAttrSet"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="selectAttrSet"/>

<waitForText userInput="$$createProductAttribute.default_frontend_label$$" stepKey="seeAttributeInForm"/>
</test>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@
<!-- Update attribute -->
<click selector="{{AdminEditProductAttributesSection.ChangeAttributeDescriptionToggle}}" stepKey="toggleToChangeDescription"/>
<fillField selector="{{AdminEditProductAttributesSection.AttributeDescription}}" userInput="Updated $$createProductOne.custom_attributes[description]$$" stepKey="fillAttributeDescriptionField"/>
<actionGroup ref="AdminSaveProductsMassAttributesUpdateActionGroup" stepKey="save"/>
<!-- <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForSuccessMessage"/> -->
<!-- <click selector="{{AdminEditProductAttributesSection.Save}}" stepKey="save"/> -->
<click selector="{{AdminEditProductAttributesSection.Save}}" stepKey="save"/>
<see selector="{{AdminProductMessagesSection.successMessage}}" userInput="Message is added to queue" stepKey="seeAttributeUpateSuccessMsg"/>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,8 @@
<!-- Update the description -->
<click selector="{{AdminUpdateAttributesSection.toggleDescription}}" stepKey="clickToggleDescription"/>
<fillField selector="{{AdminUpdateAttributesSection.description}}" userInput="MFTF automation!" stepKey="fillDescription"/>
<actionGroup ref="AdminSaveProductsMassAttributesUpdateActionGroup" stepKey="clickSave"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForSuccessMessage"/>

<!-- <click selector="{{AdminEditProductAttributesSection.Save}}" stepKey="clickSave"/>
<waitForElementVisible selector="{{AdminProductMessagesSection.successMessage}}" time="60" stepKey="waitForSuccessMessage"/> -->
<click selector="{{AdminEditProductAttributesSection.Save}}" stepKey="clickSave"/>
<waitForElementVisible selector="{{AdminProductMessagesSection.successMessage}}" time="60" stepKey="waitForSuccessMessage"/>
<see selector="{{AdminProductMessagesSection.successMessage}}" userInput="Message is added to queue" stepKey="seeAttributeUpdateSuccessMsg"/>

<!-- Apply changes -->
Expand Down

0 comments on commit 88b58a0

Please sign in to comment.