Skip to content

Commit c954022

Browse files
committed
MAGETWO-95799: [Flaky test]Stabilize AdminAddImageToCMSPageTinyMCE3Test
- stabilize test
1 parent f0fcaa0 commit c954022

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

app/code/Magento/Cms/Test/Mftf/Test/AdminAddImageToCMSPageTinyMCE3Test.xml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,16 @@
2020
</annotations>
2121
<before>
2222
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
23-
<actionGroup ref="EnabledWYSIWYG" stepKey="enableWYSIWYG"/>
23+
<magentoCLI command="config:set cms/wysiwyg/enabled enabled" stepKey="enableWYSIWYG"/>
2424
<!-- Choose TinyMCE3 as the default WYSIWYG editor-->
25-
<actionGroup ref="SwitchToTinyMCE3" stepKey="switchToTinyMCE3"/>
25+
<!--<actionGroup ref="SwitchToTinyMCE3" stepKey="switchToTinyMCE3"/>-->
26+
<magentoCLI command="config:set cms/wysiwyg/editor Magento_Tinymce3/tinymce3Adapter" stepKey="enableTinyMCE3"/>
2627
</before>
2728
<after>
2829
<!-- Switch WYSIWYG editor to TinyMCE4-->
2930
<comment userInput="Reset editor as TinyMCE4" stepKey="chooseTinyMCE4AsEditor"/>
30-
<actionGroup ref="SwitchToVersion4ActionGroup" stepKey="switchToTinyMCE4"/>
31+
<!--<actionGroup ref="SwitchToVersion4ActionGroup" stepKey="switchToTinyMCE4"/>-->
32+
<magentoCLI command="config:set cms/wysiwyg/editor mage/adminhtml/wysiwyg/tiny_mce/tinymce4Adapter" stepKey="enableTinyMCE4"/>
3133
<actionGroup ref="logout" stepKey="logout"/>
3234
</after>
3335
<amOnPage url="{{CmsNewPagePage.url}}" stepKey="navigateToPage2"/>
@@ -36,6 +38,7 @@
3638
<click selector="{{CmsNewPagePageContentSection.header}}" stepKey="clickContentTab2" />
3739
<waitForElementVisible selector="{{TinyMCESection.TinyMCE3}}" stepKey="waitForTinyMCE3"/>
3840
<seeElement selector="{{TinyMCESection.TinyMCE3}}" stepKey="seeTinyMCE3" />
41+
<wait time="3" stepKey="waiting"/>
3942
<comment userInput="Click Insert image button" stepKey="clickImageButton"/>
4043
<click selector="{{TinyMCESection.InsertImageBtnTinyMCE3}}" stepKey="clickInsertImage" />
4144
<waitForPageLoad stepKey="waitForiFrameToLoad" />

app/code/Magento/Config/Test/Mftf/ActionGroup/ConfigWYSIWYGActionGroup.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
<selectOption selector="{{ContentManagementSection.Switcher}}" userInput="TinyMCE 3" stepKey="switchToVersion3" />
2929
<click selector="{{ContentManagementSection.WYSIWYGOptions}}" stepKey="collapseWYSIWYGOptions" />
3030
<click selector="{{ContentManagementSection.Save}}" stepKey="saveConfig" />
31+
<see selector="{{AdminMessagesSection.success}}" userInput="You saved the configuration." stepKey="seeConfigurationSuccessMessage"/>
3132
</actionGroup>
3233
<actionGroup name="DisabledWYSIWYG">
3334
<amOnPage url="{{ConfigurationStoresPage.url}}" stepKey="navigateToConfigurationPage" />

0 commit comments

Comments
 (0)