|
444 | 444 | <!--Input image into stage-->
|
445 | 445 | <comment userInput="Input image into stage" stepKey="commentInputImageIntoStage"/>
|
446 | 446 | <click selector="{{TextOnStage.tinymce('1')}}" stepKey="focusOnTextEditorArea"/>
|
447 |
| - <click selector="{{TinyMCESection.InsertImageIcon}}" stepKey="clickInsertImageIcon" /> |
| 447 | + <waitForElementVisible selector="{{TinyMCESection.InsertImageIcon}}" stepKey="waitForInsertImageIcon"/> |
| 448 | + <click selector="{{TinyMCESection.InsertImageIcon}}" stepKey="clickInsertImageIcon"/> |
448 | 449 | <waitForPageLoad stepKey="waitForPageLoad" />
|
449 | 450 | <actionGroup ref="clickBrowseBtnOnUploadPopup" stepKey="clickBrowserBtn"/>
|
450 | 451 | <actionGroup ref="VerifyMediaGalleryStorageActions" stepKey="VerifyMediaGalleryStorageBtn"/>
|
|
607 | 608 | <argument name="contentType" value="PageBuilderTextContentType"/>
|
608 | 609 | </actionGroup>
|
609 | 610 | <click selector="{{TextOnStage.tinymce('1')}}" stepKey="focusOnTextEditorArea"/>
|
| 611 | + <waitForElementVisible selector="{{TinyMCESection.InsertImageIcon}}" stepKey="waitForInsertImageIcon"/> |
610 | 612 | <click selector="{{TinyMCESection.InsertImageIcon}}" stepKey="clickInsertImageIcon" />
|
611 | 613 | <waitForPageLoad stepKey="waitForPageLoad" />
|
612 | 614 | <actionGroup ref="clickBrowseBtnOnUploadPopup" stepKey="clickBrowserBtn"/>
|
|
2147 | 2149 | <!--Input image into stage-->
|
2148 | 2150 | <comment userInput="Input image into stage" stepKey="commentInputImageIntoStage"/>
|
2149 | 2151 | <click selector="{{TextOnStage.tinymce('1')}}" stepKey="focusOnTextEditorArea"/>
|
2150 |
| - <click selector="{{TinyMCESection.InsertImageIcon}}" stepKey="clickInsertImageIcon" /> |
| 2152 | + <waitForElementVisible selector="{{TinyMCESection.InsertImageIcon}}" stepKey="waitForInsertImageIcon"/> |
| 2153 | + <click selector="{{TinyMCESection.InsertImageIcon}}" stepKey="clickInsertImageIcon"/> |
2151 | 2154 | <waitForPageLoad stepKey="waitForPageLoad" />
|
2152 | 2155 | <actionGroup ref="clickBrowseBtnOnUploadPopup" stepKey="clickBrowserBtn"/>
|
2153 | 2156 | <actionGroup ref="VerifyMediaGalleryStorageActions" stepKey="VerifyMediaGalleryStorageBtn"/>
|
|
2773 | 2776 | <actualResult type="variable">getBlockTextOnStorefrontHeight</actualResult>
|
2774 | 2777 | </assertEquals>
|
2775 | 2778 | </test>
|
| 2779 | + <test name="TextTooltipMenusAreNotCutOffInFullScreenMode" extends="HeadingLiveEditToolbarNotCutOffInFullScreenMode"> |
| 2780 | + <annotations> |
| 2781 | + <features value="PageBuilder"/> |
| 2782 | + <stories value="Text"/> |
| 2783 | + <title value="Text tooltip menus should not overflow viewport bounds (get 'cut off') in full screen mode"/> |
| 2784 | + <description value="As a content creator I want text tooltip menus to be always positioned within viewport bounds so that they are accessible to me within the UI"/> |
| 2785 | + <severity value="MAJOR"/> |
| 2786 | + <useCaseId value="MC-5383"/> |
| 2787 | + <testCaseId value="MC-6491"/> |
| 2788 | + <group value="pagebuilder"/> |
| 2789 | + <group value="pagebuilder-text"/> |
| 2790 | + </annotations> |
| 2791 | + <before> |
| 2792 | + <magentoCLI command="config:set cms/wysiwyg/editor mage/adminhtml/wysiwyg/tiny_mce/tinymce4Adapter" stepKey="enableTinyMCE4" before="enableWYSIWYG"/> |
| 2793 | + <magentoCLI command="config:set cms/wysiwyg/enabled enabled" stepKey="enableWYSIWYG" before="navigateToAPageWithPageBuilder"/> |
| 2794 | + </before> |
| 2795 | + <!-- Add Text Content Type --> |
| 2796 | + <comment userInput="Add Text Content Type" stepKey="commentAddInnerContentType"/> |
| 2797 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderInnerContentTypePanelGroup"> |
| 2798 | + <argument name="group" value="PageBuilderTextContentType"/> |
| 2799 | + </actionGroup> |
| 2800 | + <actionGroup ref="dragContentTypeToContainer" stepKey="dragInnerContentTypeIntoColumn"> |
| 2801 | + <argument name="contentType" value="PageBuilderTextContentType"/> |
| 2802 | + <argument name="containerTargetType" value="PageBuilderColumnContentType"/> |
| 2803 | + <argument name="containerTargetIndex" value="1"/> |
| 2804 | + <argument name="contentTypeIndex" value="1"/> |
| 2805 | + </actionGroup> |
| 2806 | + <waitForElementVisible selector="{{PageBuilderStage.inlineWYSIWYGEditorPanel(PageBuilderTextContentType.role, '1')}}" stepKey="waitForToolbarVisible"/> |
| 2807 | + <executeJS function="return document.evaluate(`{{PageBuilderStage.inlineWYSIWYGEditorPanel(PageBuilderTextContentType.role, '1')}}`, document.body).iterateNext().getBoundingClientRect().bottom" stepKey="toolbarBottomPosition"/> |
| 2808 | + <executeJS function="return document.evaluate(`{{PageBuilderStage.inlineWYSIWYGEditorPanel(PageBuilderTextContentType.role, '1')}}`, document.body).iterateNext().getBoundingClientRect().top" stepKey="toolbarTopPosition"/> |
| 2809 | + <executeJS function="return document.evaluate(`{{TextOnStage.wysiwyg('1')}}`, document.body).iterateNext().getBoundingClientRect().top" stepKey="inputBoxTopPosition"/> |
| 2810 | + <actionGroup ref="unFocusOptionMenu" stepKey="unFocusEditor"> |
| 2811 | + <argument name="contentType" value="PageBuilderTextContentType"/> |
| 2812 | + </actionGroup> |
| 2813 | + <waitForElementVisible selector="{{TextOnStage.wysiwyg('1')}}" stepKey="waitForContentTypeToBeVisible"/> |
| 2814 | + <click selector="{{TextOnStage.wysiwyg('1')}}" stepKey="focusOnInnerContentType"/> |
| 2815 | + <waitForPageLoad after="focusOnInnerContentType" stepKey="waitForToolbarAnimationAfterOverflow"/> |
| 2816 | + <waitForElementVisible selector="{{PageBuilderStage.inlineWYSIWYGEditorPanel(PageBuilderTextContentType.role, '1')}}" after="waitForToolbarAnimationAfterOverflow" stepKey="waitForToolbarVisibleAfterOverflow"/> |
| 2817 | + <executeJS function="return document.evaluate(`{{PageBuilderStage.inlineWYSIWYGEditorPanel(PageBuilderTextContentType.role, '1')}}`, document.body).iterateNext().getBoundingClientRect().top" stepKey="toolbarTopPositionAfterOverflow"/> |
| 2818 | + <executeJS function="return document.evaluate(`{{TextOnStage.wysiwyg('1')}}`, document.body).iterateNext().getBoundingClientRect().bottom" stepKey="inputBoxBottomPositionAfterOverflow"/> |
| 2819 | + <executeJS function="return document.evaluate(`{{TextOnStage.wysiwyg('1')}}`, document.body).iterateNext().getBoundingClientRect().top" stepKey="inputBoxTopPositionAfterOverflow"/> |
| 2820 | + <actionGroup ref="unFocusOptionMenu" stepKey="unFocusEditorAfterOverflow"> |
| 2821 | + <argument name="contentType" value="PageBuilderTextContentType"/> |
| 2822 | + </actionGroup> |
| 2823 | + <click selector="{{TextOnStage.wysiwyg('1')}}" stepKey="focusOnInnerContentTypeAfterExitFullScreen"/> |
| 2824 | + <waitForPageLoad after="focusOnInnerContentTypeAfterExitFullScreen" stepKey="waitForToolbarAnimationAfterExitFullScreen"/> |
| 2825 | + <waitForElementVisible selector="{{PageBuilderStage.inlineWYSIWYGEditorPanel(PageBuilderTextContentType.role, '1')}}" after="waitForToolbarAnimationAfterExitFullScreen" stepKey="waitForToolbarVisibleAfterExitFullScreen"/> |
| 2826 | + <executeJS function="return document.evaluate(`{{TextOnStage.wysiwyg('1')}}`, document.body).iterateNext().getBoundingClientRect().top" stepKey="inputBoxTopPositionAfterExitFullScreen"/> |
| 2827 | + <executeJS function="return document.evaluate(`{{PageBuilderStage.inlineWYSIWYGEditorPanel(PageBuilderTextContentType.role, '1')}}`, document.body).iterateNext().getBoundingClientRect().top" stepKey="toolbarTopPositionAfterExitFullScreen"/> |
| 2828 | + <executeJS function="return document.evaluate(`{{PageBuilderStage.inlineWYSIWYGEditorPanel(PageBuilderTextContentType.role, '1')}}`, document.body).iterateNext().getBoundingClientRect().bottom" stepKey="toolbarBottomPositionAfterExitFullScreen"/> |
| 2829 | + </test> |
2776 | 2830 | </tests>
|
0 commit comments