Skip to content

Commit cbc884d

Browse files
committed
added AdminSelectAttributeSetActionGroup
1 parent ad29452 commit cbc884d

File tree

4 files changed

+35
-6
lines changed

4 files changed

+35
-6
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="AdminSelectAttributeSetActionGroup">
12+
<annotations>
13+
<description></description>
14+
</annotations>
15+
<arguments>
16+
<argument name="attributeSet" type="entity"/>
17+
</arguments>
18+
19+
<click selector="{{AdminProductFormSection.attributeSet}}" stepKey="startEditAttrSet"/>
20+
<fillField selector="{{AdminProductFormSection.attributeSetFilter}}" userInput="{{attributeSet.attribute_set_name}}" stepKey="searchForAttrSet"/>
21+
<click selector="{{AdminProductFormSection.attributeSetFilterResult}}" stepKey="selectAttrSet"/>
22+
23+
</actionGroup>
24+
</actionGroups>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@
6060
<argument name="product" value="$$createSimpleProduct$$"/>
6161
</actionGroup>
6262

63-
<click selector="{{AdminProductFormSection.attributeSet}}" stepKey="startEditAttrSet"/>
64-
<fillField selector="{{AdminProductFormSection.attributeSetFilter}}" userInput="$$createAttributeSet.attribute_set_name$$" stepKey="searchForAttrSet"/>
65-
<click selector="{{AdminProductFormSection.attributeSetFilterResult}}" stepKey="selectAttrSet"/>
63+
<actionGroup ref="AdminSelectAttributeSetActionGroup" stepKey="startEditAttrSet">
64+
<argument name="attributeSet" value="CatalogAttributeSet"/>
65+
</actionGroup>
6666

6767
<waitForText userInput="$$createProductAttribute.default_frontend_label$$" stepKey="seeAttributeInForm"/>
6868
</test>

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@
5252
<!-- Update attribute -->
5353
<click selector="{{AdminEditProductAttributesSection.ChangeAttributeDescriptionToggle}}" stepKey="toggleToChangeDescription"/>
5454
<fillField selector="{{AdminEditProductAttributesSection.AttributeDescription}}" userInput="Updated $$createProductOne.custom_attributes[description]$$" stepKey="fillAttributeDescriptionField"/>
55-
<click selector="{{AdminEditProductAttributesSection.Save}}" stepKey="save"/>
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"/> -->
5658
<see selector="{{AdminProductMessagesSection.successMessage}}" userInput="Message is added to queue" stepKey="seeAttributeUpateSuccessMsg"/>
5759

5860

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,11 @@
5959
<!-- Update the description -->
6060
<click selector="{{AdminUpdateAttributesSection.toggleDescription}}" stepKey="clickToggleDescription"/>
6161
<fillField selector="{{AdminUpdateAttributesSection.description}}" userInput="MFTF automation!" stepKey="fillDescription"/>
62-
<click selector="{{AdminEditProductAttributesSection.Save}}" stepKey="clickSave"/>
63-
<waitForElementVisible selector="{{AdminProductMessagesSection.successMessage}}" time="60" stepKey="waitForSuccessMessage"/>
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"/> -->
6467
<see selector="{{AdminProductMessagesSection.successMessage}}" userInput="Message is added to queue" stepKey="seeAttributeUpdateSuccessMsg"/>
6568

6669
<!-- Apply changes -->

0 commit comments

Comments
 (0)