Skip to content

Commit 7627b3c

Browse files
author
Lukasz Borowiec
committed
#510: User edits cms page content in full-screen mode only - fixed the mtft test
1 parent 7e21469 commit 7627b3c

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

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

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
<actionGroup ref="NavigateToCreatedCMSPageActionGroup" stepKey="navigateToCreatedCMSPage1">
4343
<argument name="CMSPage" value="$$createCMSPage$$"/>
4444
</actionGroup>
45-
<actionGroup ref="expandPageBuilderPanelMenuSection" stepKey="expandPageBuilderPanelMenuSection1">
45+
<actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
46+
<actionGroup ref="expandPageBuilderPanelMenuSection" stepKey="expandPageBuilderPanelMenuSection1" after="switchToPageBuilderStage">
4647
<argument name="contentType" value="PageBuilderTextContentType"/>
4748
</actionGroup>
4849
<actionGroup ref="dragContentTypeToStage" stepKey="dragButtonsOntoStage">
@@ -51,7 +52,8 @@
5152
<click selector="{{TextOnStage.textareaPlaceholder('1')}}" stepKey="focusOnEditorArea"/>
5253
<fillField selector="{{TextOnStage.textareaPlaceholder('1')}}" userInput="{{PageBuilderTextProperty.value}}" stepKey="fillTextToTextarea"/>
5354
<click selector="{{PageBuilderPanel.searchPanel}}" stepKey="lostFocusFromTextarea"/>
54-
<actionGroup ref="SaveAndContinueEditCmsPageActionGroup" stepKey="saveAndContinueEditCmsPage2"/>
55+
<actionGroup ref="exitPageBuilderFullScreen" stepKey="exitPageBuilderFullScreen"/>
56+
<actionGroup ref="SaveAndContinueEditCmsPageActionGroup" stepKey="saveAndContinueEditCmsPage2" after="exitPageBuilderFullScreen"/>
5557
<actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage2"/>
5658
<!--Verify Text Content Type on stage after saving cms page-->
5759
<comment userInput="Verify text content type on stage" stepKey="commentVerifyTextOnStage"/>
@@ -77,7 +79,8 @@
7779
</actionGroup>
7880
<executeJS function="return document.getElementById('{{TextOnConfiguration.textAreaId}}').value;" stepKey="expectedData"/>
7981
<actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/>
80-
<actionGroup ref="SaveAndContinueEditCmsPageActionGroup" stepKey="saveAndContinueEditCmsPage3"/>
82+
<actionGroup ref="exitPageBuilderFullScreen" stepKey="exitPageBuilderFullScreen2"/>
83+
<actionGroup ref="SaveAndContinueEditCmsPageActionGroup" stepKey="saveAndContinueEditCmsPage3" after="exitPageBuilderFullScreen2"/>
8184
<!-- Switch to TinyMCE4 -->
8285
<comment userInput="Switch to TinyMCE4 " stepKey="comment4"/>
8386
<magentoCLI command="config:set cms/wysiwyg/enabled enabled" stepKey="enableWYSIWYG"/>
@@ -93,7 +96,8 @@
9396
<seeElement selector="{{TextOnStage.variablePlaceholder('1')}}" stepKey="waitForVariablePlaceholder"/>
9497
<seeElement selector="{{TextOnStage.text('1', TinyMCEWidgetCMSPageLink.editPanelValue)}}" stepKey="waitForWidgetValue"/>
9598
<seeElement selector="{{TextOnStage.widgetPlaceholder('1')}}" stepKey="waitForWidgetPlaceholder"/>
96-
<actionGroup ref="SaveAndContinueEditCmsPageActionGroup" stepKey="saveAndContinueEditCmsPage4"/>
99+
<actionGroup ref="exitPageBuilderFullScreen" stepKey="exitPageBuilderFullScreen3"/>
100+
<actionGroup ref="SaveAndContinueEditCmsPageActionGroup" stepKey="saveAndContinueEditCmsPage4" after="exitPageBuilderFullScreen3"/>
97101
<!-- Switch to Textarea -->
98102
<comment userInput="Switch to Textarea" stepKey="comment7"/>
99103
<magentoCLI command="config:set cms/wysiwyg/enabled disabled" stepKey="disableWYSIWYG"/>
@@ -120,7 +124,8 @@
120124
</actionGroup>
121125
<actionGroup ref="SaveImageActionGroup" stepKey="insertImage"/>
122126
<actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings1"/>
123-
<actionGroup ref="SaveAndContinueEditCmsPageActionGroup" stepKey="saveAndContinueEditCmsPage5"/>
127+
<actionGroup ref="exitPageBuilderFullScreen" stepKey="exitPageBuilderFullScreen4"/>
128+
<actionGroup ref="SaveAndContinueEditCmsPageActionGroup" stepKey="saveAndContinueEditCmsPage5" after="exitPageBuilderFullScreen4"/>
124129
<!-- Switch to TinyMCE4 -->
125130
<comment userInput="Switch to TinyMCE4 " stepKey="comment9"/>
126131
<magentoCLI command="config:set cms/wysiwyg/enabled enabled" stepKey="enableWYSIWYG1"/>

0 commit comments

Comments
 (0)