Skip to content

Commit ef52b24

Browse files
committed
MC-6338: TinyMCE4 is applied as new WYSIWYG on Product Attribute
Fixed comments
1 parent ef94d74 commit ef52b24

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

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

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,35 +43,43 @@
4343
<actionGroup ref="logout" stepKey="logout"/>
4444
</after>
4545

46-
<!-- Go to Stores > Product -->
46+
<!-- Go to Stores > Product, click "Add New Attribute" -->
4747
<actionGroup ref="AdminOpenProductAttributePageActionGroup" stepKey="openProductAttributePage"/>
48-
49-
<!-- Create new product attribute -->
5048
<click selector="{{AdminProductAttributeGridSection.createNewAttributeBtn}}" stepKey="createNewAttribute"/>
49+
50+
<!-- Input value for Default Label. Verify dropdown of "Catalog Input Type for Store Owner" -->
5151
<actionGroup ref="AdminFillProductAttributePropertiesActionGroup" stepKey="fillAttributeProperties">
5252
<argument name="attributeName" value="{{productTextEditorAttribute.attribute_code}}"/>
5353
<argument name="attributeType" value="{{productTextEditorAttribute.frontend_input}}"/>
5454
</actionGroup>
5555

56-
<!-- Update product attribute input type and assert WYSIWYG -->
56+
<!-- Input value for "Catalog Input Type for Store Owner" -->
5757
<selectOption selector="{{AttributePropertiesSection.InputType}}" userInput="{{productAttributeWysiwyg.frontend_input}}" stepKey="updateInputType"/>
58+
59+
<!-- Click on "Storefront Properties" tab on left menu -->
5860
<click selector="{{StorefrontPropertiesSection.StoreFrontPropertiesTab}}" stepKey="clickStorefrontPropertiesTab"/>
5961
<dontSeeElement selector="{{StorefrontPropertiesSection.EnableWYSIWYG}}" stepKey="dontSeeWYSIWYGEnableField"/>
6062

61-
<!-- Change attribute visibility and input type -->
63+
<!-- Selection for "Visible on Catalog Pages on Storefront" -->
6264
<selectOption selector="{{StorefrontPropertiesSection.visibleOnCatalogPagesOnStorefront}}" userInput="Yes" stepKey="enableVisibleOnStorefront"/>
6365
<scrollToTopOfPage stepKey="scrollToPageTop"/>
66+
67+
<!-- Go back to "Properties" tab on left menu -->
6468
<click selector="{{AttributePropertiesSection.propertiesTab}}" stepKey="clickPropertiesTab"/>
69+
70+
<!-- Updated value for "Catalog Input Type for Store Owner" -->
6571
<selectOption selector="{{AttributePropertiesSection.InputType}}" userInput="{{productTextEditorAttribute.frontend_input}}" stepKey="returnInputType"/>
72+
73+
<!-- Save Product Attribute -->
6674
<actionGroup ref="saveProductAttribute" stepKey="saveAttribute"/>
6775

6876
<!-- Go to Store > Attribute Set -->
6977
<actionGroup ref="AdminOpenAttributeSetGridPageActionGroup" stepKey="openAttributeSetPage"/>
7078

71-
<!-- Open Default attribute -->
79+
<!-- From grid, click on attribute set Default -->
7280
<actionGroup ref="AdminOpenAttributeSetByNameActionGroup" stepKey="openDefaultAttributeSet"/>
7381

74-
<!-- Add created attribute to Default attribute and save -->
82+
<!-- Add Product Attribute to Default attribute by dragging and dropping this to the 'Project Details' folder. Then Save. -->
7583
<actionGroup ref="AssignAttributeToGroup" stepKey="assignAttributeToGroup">
7684
<argument name="group" value="Product Details"/>
7785
<argument name="attribute" value="{{productTextEditorAttribute.attribute_code}}"/>
@@ -84,7 +92,7 @@
8492
<argument name="product" value="_defaultProduct"/>
8593
</actionGroup>
8694

87-
<!-- Select attribute set: Default -->
95+
<!-- On product page, select Attribute Set: "Default" -->
8896
<actionGroup ref="AdminProductPageSelectAttributeSet" stepKey="selectAttributeSet">
8997
<argument name="attributeSetName" value="Default"/>
9098
</actionGroup>
@@ -106,7 +114,7 @@
106114
<!-- Add content into attribute -->
107115
<fillField selector="{{ProductDescriptionWysiwygSection.attributeEditArea(productTextEditorAttribute.attribute_code)}}" userInput="This content from product page" stepKey="setContent"/>
108116

109-
<!-- Fill and save product form -->
117+
<!-- Fill up all required fields for product form -->
110118
<actionGroup ref="fillMainProductForm" stepKey="fillProductForm"/>
111119
<actionGroup ref="saveProductForm" stepKey="saveProductForm"/>
112120

0 commit comments

Comments
 (0)