File tree 4 files changed +35
-6
lines changed
AdminMassUpdateProductAttributesStoreViewScopeTest
ConfigurableProduct/Test/Mftf/Test/AdminConfigurableProductUpdateTest
4 files changed +35
-6
lines changed Original file line number Diff line number Diff line change
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 >
Original file line number Diff line number Diff line change 60
60
<argument name =" product" value =" $$createSimpleProduct$$" />
61
61
</actionGroup >
62
62
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 >
66
66
67
67
<waitForText userInput =" $$createProductAttribute.default_frontend_label$$" stepKey =" seeAttributeInForm" />
68
68
</test >
Original file line number Diff line number Diff line change 52
52
<!-- Update attribute -->
53
53
<click selector =" {{AdminEditProductAttributesSection.ChangeAttributeDescriptionToggle}}" stepKey =" toggleToChangeDescription" />
54
54
<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"/> -->
56
58
<see selector =" {{AdminProductMessagesSection.successMessage}}" userInput =" Message is added to queue" stepKey =" seeAttributeUpateSuccessMsg" />
57
59
58
60
Original file line number Diff line number Diff line change 59
59
<!-- Update the description -->
60
60
<click selector =" {{AdminUpdateAttributesSection.toggleDescription}}" stepKey =" clickToggleDescription" />
61
61
<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"/> -->
64
67
<see selector =" {{AdminProductMessagesSection.successMessage}}" userInput =" Message is added to queue" stepKey =" seeAttributeUpdateSuccessMsg" />
65
68
66
69
<!-- Apply changes -->
You can’t perform that action at this time.
0 commit comments