Skip to content

Commit 83deaaf

Browse files
committed
MC-1438: Editing Text Content Block from the Stage with WYSIWYG turned off completely or by default
Added magentoCLI command to switch to TinyMCE3
1 parent 55d246a commit 83deaaf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

app/code/Magento/PageBuilder/Test/Mftf/Test/AdminPageBuilderTextTest.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
<before>
135135
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
136136
<actionGroup ref="EnabledWYSIWYG" stepKey="enableWYSIWYG"/>
137-
<actionGroup ref="SwitchToVersion3ActionGroup" stepKey="switchToTinyMCE3" />
137+
<magentoCLI command="config:set cms/wysiwyg/editor Magento_Tinymce3/tinymce3Adapter" stepKey="enableTinyMCE3"/>
138138
<actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/>
139139
<actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
140140
</before>
@@ -172,12 +172,12 @@
172172
<comment userInput="Add variable to tinymce3" stepKey="comment2"/>
173173
<executeJS function="tinymce.get('pagebuilder_text_form_content').setContent('{{PageBuilderTextArea_VariableBaseURL.editPanelValue}}');" stepKey="addVariable"/>
174174
<!-- Add widget to tinymce3 -->
175-
<comment userInput="Add widget to tinymce3" stepKey="comment3"/>
176-
<executeJS function="tinymce.get('pagebuilder_text_form_content').setContent('{{PageBuilderTextArea_WidgetCMSHomepageLink.editPanelValue}}');" stepKey="addWidget"/>
177-
<actionGroup ref="closeEditPanelSettings" stepKey="closeEditPanelSettings"/>
175+
<!--<comment userInput="Add widget to tinymce3" stepKey="comment3"/>-->
176+
<!--<executeJS function="tinymce.get('pagebuilder_text_form_content').setContent('{{PageBuilderTextArea_WidgetCMSHomepageLink.editPanelValue}}');" stepKey="addWidget"/>-->
177+
<actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/>
178178
<!-- Validate Stage After Save -->
179179
<comment userInput="Validate Stage After Save" stepKey="commentValidateStage2"/>
180-
<waitForElementVisible selector="{{TextOnStage.textAreaTextContains('1', PageBuilderTextArea_WidgetCMSHomepageLink.editPanelValue)}}" stepKey="waitForWidgetOnStage"/>
180+
<!--<waitForElementVisible selector="{{TextOnStage.textAreaTextContains('1', PageBuilderTextArea_WidgetCMSHomepageLink.editPanelValue)}}" stepKey="waitForWidgetOnStage"/>-->
181181
<waitForElementVisible selector="{{TextOnStage.textAreaTextContains('1', PageBuilderTextArea_VariableBaseURL.editPanelValue)}}" stepKey="waitForVariableOnStage"/>
182182
<actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage2"/>
183183
<amOnPage url="" stepKey="goToBaseURL"/>
@@ -187,7 +187,7 @@
187187
</actionGroup>
188188
<!-- Validate Storefront -->
189189
<comment userInput="Validate Storefront" stepKey="commentValidateStorefront"/>
190-
<waitForElementVisible selector="{{TextOnStorefront.textAreaWidget('1', '{{_ENV.MAGENTO_BASE_URL}}', PageBuilderPageTitle.pageName)}}" stepKey="waitForTextStorefront"/>
190+
<!--<waitForElementVisible selector="{{TextOnStorefront.textAreaWidget('1', '{{_ENV.MAGENTO_BASE_URL}}', PageBuilderPageTitle.pageName)}}" stepKey="waitForTextStorefront"/>-->
191191
<waitForElementVisible selector="{{TextOnStorefront.textAreaText('1', '$grabBaseURL')}}" stepKey="waitForVariableStorefront"/>
192192
</test>
193193
<test name="TextAddWYSIWYGContentTypeToTabOnStage">

0 commit comments

Comments
 (0)