|
2559 | 2559 | <waitForElementVisible selector="{{TextOnConfiguration.textArea}}" stepKey="waitForTextOnEditPanel" before="enterText"/>
|
2560 | 2560 | <fillField selector="{{TextOnConfiguration.textArea}}" userInput="{{PageBuilderTextProperty.value}}" stepKey="enterText"/>
|
2561 | 2561 | </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> |
2562 | 2608 | </tests>
|
0 commit comments