|
16 | 16 | <description value="Create text editor product attribute with TinyMCE4 enabled"/>
|
17 | 17 | <severity value="CRITICAL"/>
|
18 | 18 | <testCaseId value="MC-6338"/>
|
19 |
| - <group value="Catalog"/> |
| 19 | + <group value="catalog"/> |
20 | 20 | </annotations>
|
21 | 21 | <before>
|
22 | 22 | <!-- Enable WYSIWYG editor -->
|
|
93 | 93 | <seeElement selector="{{AdminProductFormSection.attributeLabelByText(productTextEditorAttribute.attribute_code)}}" stepKey="seeAttributeLabelInProductForm"/>
|
94 | 94 |
|
95 | 95 | <!-- TinyMCE 4 is displayed in WYSIWYG content area -->
|
96 |
| - <seeElement selector="{{TinyMCESection.TinyMCE4}}" stepKey="seeTinyMCE4" /> |
| 96 | + <seeElement selector="{{TinyMCESection.TinyMCE4}}" stepKey="seeTinyMCE4"/> |
97 | 97 |
|
98 | 98 | <!-- Verify toolbar menu -->
|
99 | 99 | <actionGroup ref="VerifyTinyMCEActionGroup" stepKey="verifyToolbarMenu"/>
|
100 | 100 |
|
101 |
| - <!-- Add content into attribute --> |
102 |
| - <executeJS function="tinyMCE.get('product_form_{{productTextEditorAttribute.attribute_code}}').setContent('This content from product page');" stepKey="executeJSFillContent"/> |
103 |
| - |
104 | 101 | <!-- Click Show/Hide button and see Insert Image button -->
|
105 | 102 | <scrollToTopOfPage stepKey="scrollToTop"/>
|
106 | 103 | <click selector="{{ProductAttributeWYSIWYGSection.showHideBtn(productTextEditorAttribute.attribute_code)}}" stepKey="clickShowHideBtn"/>
|
107 | 104 | <waitForElementVisible selector="{{TinyMCESection.InsertImageBtn}}" stepKey="waitForInsertImageBtn"/>
|
108 | 105 |
|
| 106 | + <!-- Add content into attribute --> |
| 107 | + <fillField selector="{{ProductDescriptionWysiwygSection.attributeEditArea(productTextEditorAttribute.attribute_code)}}" userInput="This content from product page" stepKey="setContent"/> |
| 108 | + |
109 | 109 | <!-- Fill and save product form -->
|
110 | 110 | <actionGroup ref="fillMainProductForm" stepKey="fillProductForm"/>
|
111 | 111 | <actionGroup ref="saveProductForm" stepKey="saveProductForm"/>
|
112 | 112 |
|
113 |
| - <!--Run full reindex and clear caches --> |
114 |
| - <magentoCLI command="cache:flush" stepKey="flushCache"/> |
115 |
| - <magentoCLI command="indexer:reindex" stepKey="reindex"/> |
116 |
| - |
117 | 113 | <!-- Assert product attribute on Storefront -->
|
118 | 114 | <actionGroup ref="OpenStorefrontProductPageByProductNameActionGroup" stepKey="openProductPage"/>
|
119 | 115 | <actionGroup ref="checkAttributeInMoreInformationTab" stepKey="checkAttributeInMoreInformationTab">
|
|
0 commit comments