Skip to content

Commit 9a94a18

Browse files
committed
Merge remote-tracking branch 'remotes/mainline/1.0.0-release' into 1.0.0-beta-release-and-1.0.0-release
2 parents 555b0a5 + 5cf7e8a commit 9a94a18

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

app/code/Magento/PageBuilder/Test/Mftf/Section/PageBuilderTextSection.xml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<element name="textareaPlaceholder" type="text" selector="(//div[contains(@class,'pagebuilder-text')])[{{arg1}}]//textarea[contains(@class, 'inline-wysiwyg-textarea') and contains(@placeholder,'Edit Text')]" parameterized="true"/>
2424
<element name="textPlaceholder" type="text" selector="(//div[contains(@class,'pagebuilder-text')])[{{arg}}]//*[contains(@class, 'placeholder-text') and text()='Edit Text']" parameterized="true"/>
2525
<element name="tinymce" type="text" selector="(//div[contains(@class,'pagebuilder-text')])[{{arg}}]//div[contains(@class, 'inline-wysiwyg')]" parameterized="true"/>
26+
<element name="tinymceFocused" type="text" selector="(//div[contains(@class, 'pagebuilder-text') and contains(@class, 'pagebuilder-toolbar-active')])[{{arg}}]" parameterized="true"/>
2627
<element name="importantStyle" type="text" selector="//span[text()='Important']"/>
2728
<element name="textInImportantStyle" type="text" selector="(//div[contains(@class,'pagebuilder-text')])[{{arg1}}]//div[contains(normalize-space(@class), 'cms-content-important') and text()='{{arg2}}']" parameterized="true"/>
2829
<element name="emptyTextInImportantStyle" type="text" selector="(//div[contains(@class,'pagebuilder-text')])[{{arg1}}]//div[contains(normalize-space(@class), 'cms-content-important')]" parameterized="true"/>

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

+46
Original file line numberDiff line numberDiff line change
@@ -2559,4 +2559,50 @@
25592559
<waitForElementVisible selector="{{TextOnConfiguration.textArea}}" stepKey="waitForTextOnEditPanel" before="enterText"/>
25602560
<fillField selector="{{TextOnConfiguration.textArea}}" userInput="{{PageBuilderTextProperty.value}}" stepKey="enterText"/>
25612561
</test>
2562+
<test name="InlineTinyMceEditingIsNotFocusedOnEditSave">
2563+
<annotations>
2564+
<features value="PageBuilder"/>
2565+
<stories value="Text"/>
2566+
<title value="TinyMCE should not be incorrectly focused"/>
2567+
<description value="Verify the inline editing mode for TinyMCE isn't focused automatically when saving content within the edit panel"/>
2568+
<severity value="MAJOR"/>
2569+
<useCaseId value="MC-3812"/>
2570+
<testCaseId value="MC-5728"/>
2571+
<group value="pagebuilder"/>
2572+
<group value="pagebuilder-text"/>
2573+
</annotations>
2574+
<before>
2575+
<createData entity="_defaultCmsPage" stepKey="createCMSPage" />
2576+
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
2577+
<actionGroup ref="SwitchToVersion4ActionGroup" stepKey="switchToTinyMCE4" />
2578+
</before>
2579+
<after>
2580+
<deleteData createDataKey="createCMSPage" stepKey="deletePreReqCMSPage" />
2581+
<actionGroup ref="logout" stepKey="logout"/>
2582+
</after>
2583+
<actionGroup ref="navigateToCreatedCMSPage" stepKey="navigateToCreatedCMSPage1">
2584+
<argument name="CMSPage" value="$$createCMSPage$$"/>
2585+
</actionGroup>
2586+
<actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup1">
2587+
<argument name="group" value="PageBuilderTextContentType"/>
2588+
</actionGroup>
2589+
<actionGroup ref="dragContentTypeToStage" stepKey="dragTextOntoStage">
2590+
<argument name="contentType" value="PageBuilderTextContentType"/>
2591+
</actionGroup>
2592+
<!-- Drag text into stage -->
2593+
<comment userInput="Drag text into stage" stepKey="commentDragTextIntoStage"/>
2594+
<click selector="{{TextOnStage.tinymce('1')}}" stepKey="focusOnEditorArea"/>
2595+
<seeElement selector="{{TextOnStage.tinymceFocused('1')}}" stepKey="seeFocusedTinyMce"/>
2596+
<click selector="{{PageBuilderPanel.searchPanel}}" stepKey="lostFocusFromWYSIWYG1"/>
2597+
<dontSeeElement selector="{{TextOnStage.tinymceFocused('1')}}" stepKey="dontSeeFocusedTinyMce"/>
2598+
<!-- Open and save slide out panel -->
2599+
<comment userInput="Open and save slide out panel" stepKey="commentOpenAndSaveSlideOut"/>
2600+
<actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage">
2601+
<argument name="contentType" value="PageBuilderTextContentType"/>
2602+
</actionGroup>
2603+
<actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/>
2604+
<!-- Verify TinyMCE is not automatically focused -->
2605+
<comment userInput="Verify TinyMCE is not automatically focused" stepKey="commentVerifyNotFocused"/>
2606+
<dontSeeElement selector="{{TextOnStage.tinymceFocused('1')}}" stepKey="dontSeeTinyMceFocused"/>
2607+
</test>
25622608
</tests>

0 commit comments

Comments
 (0)