Skip to content

Commit 8cb75af

Browse files
committed
MC-1438: Editing Text Content Block from the Stage with WYSIWYG turned off completely or by default
1 parent ecccaf3 commit 8cb75af

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

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

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
<actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage2"/>
114114
<actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage2"/>
115115
<!--Verify Text Content Type on stage after saving cms page-->
116-
<comment userInput="Verify text content type on storefront" stepKey="commentVerifyTextOnStage"/>
116+
<comment userInput="Verify text content type on stage" stepKey="commentVerifyTextOnStage"/>
117117
<waitForElementVisible selector="{{TextOnStage.textAreaText('1', PageBuilderTextProperty.value)}}" stepKey="waitForTextStage2"/>
118118
<!--Verify Text Content Type on storefront-->
119119
<comment userInput="Verify Text Content Type on storefront" stepKey="commentVerifyTextContenTypeOnStorefront"/>
@@ -134,14 +134,12 @@
134134
</annotations>
135135
<before>
136136
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
137-
<actionGroup ref="EnabledWYSIWYG" stepKey="enableWYSIWYG"/>
138137
<magentoCLI command="config:set cms/wysiwyg/editor Magento_Tinymce3/tinymce3Adapter" stepKey="enableTinyMCE3"/>
139138
<actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/>
140139
<actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
141140
</before>
142141
<after>
143142
<actionGroup ref="SwitchToVersion4ActionGroup" stepKey="switchToTinyMCE4" />
144-
<actionGroup ref="DisabledWYSIWYG" stepKey="disableWYSIWYG"/>
145143
<actionGroup ref="logout" stepKey="logout"/>
146144
</after>
147145
<actionGroup ref="addPageBuilderPageTitle" stepKey="enterPageTitle">
@@ -163,7 +161,7 @@
163161
<actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage2">
164162
<argument name="contentType" value="PageBuilderTextContentType"/>
165163
</actionGroup>
166-
<!--<waitForElementVisible selector="{{TinyMCESection.TinyMCE3}}" stepKey="waitForTinyMCE3" />-->
164+
<waitForElementVisible selector="{{TinyMCESection.TinyMCE3}}" stepKey="waitForTinyMCE3" />
167165
<switchToIFrame selector="{{TextOnConfiguration.tinyMCEIFrame}}" stepKey="switchToIFrame1"/>
168166
<!-- Verify inputed text is carried out to slideout -->
169167
<comment userInput="Verify inputed text is carried out to slideout" stepKey="comment1"/>
@@ -188,7 +186,6 @@
188186
</actionGroup>
189187
<!-- Validate Storefront -->
190188
<comment userInput="Validate Storefront" stepKey="commentValidateStorefront"/>
191-
<!--<waitForElementVisible selector="{{TextOnStorefront.textAreaWidget('1', '{{_ENV.MAGENTO_BASE_URL}}', PageBuilderPageTitle.pageName)}}" stepKey="waitForTextStorefront"/>-->
192189
<waitForElementVisible selector="{{TextOnStorefront.textAreaText('1', '$grabBaseURL')}}" stepKey="waitForVariableStorefront"/>
193190
</test>
194191
<test name="TextAddWYSIWYGContentTypeToTabOnStage">
@@ -1491,11 +1488,11 @@
14911488
<testCaseId value="MC-3670"/>
14921489
<group value="pagebuilder"/>
14931490
<group value="pagebuilder-text"/>
1494-
<!--<group value="pagebuilder-customBeforeAfter"/>-->
1491+
<group value="pagebuilder-customBeforeAfter"/>
14951492
</annotations>
14961493
<before>
14971494
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
1498-
<actionGroup ref="DisabledWYSIWYG" stepKey="disableWYSIWYG"/>
1495+
<actionGroup ref="EnabledWYSIWYG" stepKey="enableWYSIWYG"/>
14991496
<actionGroup ref="enablePageBuilderSetting" stepKey="enablePageBuilderSetting"/>
15001497
<actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/>
15011498
<actionGroup ref="addPageBuilderPageTitle" stepKey="enterPageTitle">
@@ -1505,7 +1502,7 @@
15051502
<actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
15061503
</before>
15071504
<after>
1508-
<actionGroup ref="DisabledWYSIWYG" stepKey="disableWYSIWYG"/>
1505+
<actionGroup ref="en" stepKey="disableWYSIWYG"/>
15091506
<actionGroup ref="logout" stepKey="logout"/>
15101507
</after>
15111508
<actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup">

0 commit comments

Comments
 (0)