File tree Expand file tree Collapse file tree 5 files changed +56
-10
lines changed
app/code/Magento/Catalog/Test/Mftf Expand file tree Collapse file tree 5 files changed +56
-10
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 =" AdminProductAttributePageSwitchTabActionGroup" >
12
+ <annotations >
13
+ <description >Switches the active tab on the Product Attribute New/Edit Page</description >
14
+ </annotations >
15
+ <arguments >
16
+ <argument name =" tabName" type =" string" />
17
+ </arguments >
18
+
19
+ <click selector =" #product_attribute_tabs a[title='{{tabName}}']" stepKey =" changeProductAttributeActiveTab" />
20
+ </actionGroup >
21
+ </actionGroups >
Original file line number Diff line number Diff line change 8
8
9
9
<actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
10
xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
11
- <actionGroup name =" AssertSeeProductAttributeValidationErrorActionGroup " >
11
+ <actionGroup name =" AssertSeeProductAttributeValidationErrorOnPropertiesTabActionGroup " >
12
12
<annotations >
13
- <description >Check whenever the validation is present for the product attribute</description >
13
+ <description >Check whenever the validation error is present for the product attribute in the "Properties" Tab </description >
14
14
</annotations >
15
15
16
16
<arguments >
17
- <argument name =" selector" type =" string" />
17
+ <argument name =" selector" type =" string" defaultValue = " .field-attribute_label .mage-error " />
18
18
<argument name =" message" type =" string" />
19
19
</arguments >
20
20
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 =" AssertSeeProductAttributeValidationErrorOnManageLabelsTabActionGroup" >
12
+ <annotations >
13
+ <description >Check whenever the validation error is present for the product attribute in the "Manage Labels" Tab</description >
14
+ </annotations >
15
+
16
+ <arguments >
17
+ <argument name =" selector" type =" string" defaultValue =" #attribute-labels-table .mage-error" />
18
+ <argument name =" message" type =" string" />
19
+ </arguments >
20
+
21
+ <seeElement selector =" {{selector}}" stepKey =" seeValidationDomElement" />
22
+ <see userInput =" {{message}}" selector =" {{selector}}" stepKey =" seeValidationMessage" />
23
+ </actionGroup >
24
+ </actionGroups >
Original file line number Diff line number Diff line change 9
9
<sections xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
10
xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Page/etc/SectionObject.xsd" >
11
11
<section name =" AdminProductAttributeManageLabelsSection" >
12
- <element name =" ManageLabelsTab" selector =" #product_attribute_tabs_labels" type =" button" />
13
12
<element name =" DefaultStoreLabel" type =" input" selector =" #attribute-labels-table [name='frontend_label[1]']" />
14
13
</section >
15
14
</sections >
Original file line number Diff line number Diff line change 31
31
<argument name =" attributeType" value =" {{productAttributeWithHtmlTagsInLabel.frontend_input}}" />
32
32
</actionGroup >
33
33
34
- <click selector =" {{AdminProductAttributeManageLabelsSection.ManageLabelsTab}}" stepKey =" clickManageLabelsTab" />
34
+ <actionGroup ref =" AdminProductAttributePageSwitchTabActionGroup" stepKey =" makeManageLabelsTabActive" >
35
+ <argument name =" tabName" value =" Manage Labels" />
36
+ </actionGroup >
35
37
36
38
<actionGroup ref =" AdminFillProductAttributeDefaultStoreViewActionGroup" stepKey =" fillAttributeDefaultStoreViewLabel" >
37
39
<argument name =" value" value =" {{productAttributeWithHtmlTagsInLabel.default_store_label}}" />
38
40
</actionGroup >
39
41
40
42
<actionGroup ref =" AdminSaveProductAttributeActionGroup" stepKey =" saveAttribute" />
41
43
42
- <actionGroup ref =" AssertSeeProductAttributeValidationErrorActionGroup" stepKey =" validateAttributeStoreViewLabelForHtmlTags" >
43
- <argument name =" selector" value =" #attribute-labels-table .mage-error" />
44
+ <actionGroup ref =" AssertSeeProductAttributeValidationErrorOnManageLabelsTabActionGroup" stepKey =" validateAttributeStoreViewLabelForHtmlTags" >
44
45
<argument name =" message" value =" HTML tags are not allowed" />
45
46
</actionGroup >
46
47
47
- <click selector =" {{AttributePropertiesSection.propertiesTab}}" stepKey =" clickPropertiesTab" />
48
+ <actionGroup ref =" AdminProductAttributePageSwitchTabActionGroup" stepKey =" makePropertiesTabActive" >
49
+ <argument name =" tabName" value =" Properties" />
50
+ </actionGroup >
48
51
49
- <actionGroup ref =" AssertSeeProductAttributeValidationErrorActionGroup" stepKey =" validateAttributeLabelForHtmlTags" >
50
- <argument name =" selector" value =" .field-attribute_label .mage-error" />
52
+ <actionGroup ref =" AssertSeeProductAttributeValidationErrorOnPropertiesTabActionGroup" stepKey =" validateAttributeLabelForHtmlTags" >
51
53
<argument name =" message" value =" HTML tags are not allowed" />
52
54
</actionGroup >
53
55
</test >
You can’t perform that action at this time.
0 commit comments