|
497 | 497 | </annotations>
|
498 | 498 | <before>
|
499 | 499 | <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
|
| 500 | + <magentoCLI command="config:set cms/wysiwyg/editor mage/adminhtml/wysiwyg/tiny_mce/tinymce4Adapter" stepKey="enableTinyMCE4"/> |
| 501 | + <magentoCLI command="config:set cms/wysiwyg/enabled enabled" stepKey="enableWYSIWYG"/> |
500 | 502 | <actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/>
|
501 | 503 | <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
|
502 | 504 | </before>
|
|
525 | 527 | <waitForElementVisible selector="{{PageBuilderStage.stageWrapperFullScreen}}" stepKey="waitForStageFullScreen"/>
|
526 | 528 | <waitForElementVisible selector="{{PageBuilderStage.exitFullScreen}}" stepKey="waitForExitFullScreenButton"/>
|
527 | 529 | <waitForElementNotVisible selector="{{PageBuilderStage.stageWrapper}}" stepKey="verifyStageNotNormalScreen"/>
|
| 530 | + <!-- Explicit wait for CSS animation to complete --> |
528 | 531 | <wait time="1" stepKey="waitForFullScreenTransitionAnimationToFinish" />
|
| 532 | + <waitForElementVisible selector="{{TextOnStage.wysiwyg('1')}}" stepKey="waitForTextEditorToBeVisible" /> |
529 | 533 | <click selector="{{TextOnStage.wysiwyg('1')}}" stepKey="focusOnTextEditorArea"/>
|
| 534 | + <!-- Explicit wait for CSS animation to complete --> |
530 | 535 | <wait time="1" stepKey="waitForInlineWysiwygToolbarTransitionAnimationToFinish" />
|
531 | 536 | <waitForElementVisible selector="{{PageBuilderStage.inlineWYSIWYGEditorPanel(PageBuilderTextContentType.role, '1')}}" stepKey="waitForWYWSIWYGEditorPanelToBeVisible"/>
|
532 | 537 | <executeJS function="return document.evaluate(`{{PageBuilderStage.inlineWYSIWYGEditorPanel(PageBuilderTextContentType.role, '1')}}`, document.body).iterateNext().getBoundingClientRect().top" stepKey="topBoundingClientRect"/>
|
|
536 | 541 | <expectedResult type="int">0</expectedResult>
|
537 | 542 | <actualResult type="variable">$topBoundingClientRect</actualResult>
|
538 | 543 | </assertGreaterThanOrEqual>
|
| 544 | + <click selector="{{PageBuilderPanel.searchPanel}}" stepKey="unFocusEditor"/> |
| 545 | + <comment userInput="Shrink column down to 1/3 its original size" stepKey="commentShrinkColumnToOneThirdItsOriginalSize" /> |
| 546 | + <actionGroup ref="duplicateContentType" stepKey="duplicateColumn"> |
| 547 | + <argument name="contentType" value="PageBuilderColumnContentType"/> |
| 548 | + <argument name="targetIndex" value="1"/> |
| 549 | + <argument name="contentTypeXCoordinate" value="10"/> |
| 550 | + <argument name="contentTypeYCoordinate" value="0"/> |
| 551 | + </actionGroup> |
| 552 | + <actionGroup ref="duplicateContentType" stepKey="duplicateColumnAgain"> |
| 553 | + <argument name="contentType" value="PageBuilderColumnContentType"/> |
| 554 | + <argument name="targetIndex" value="1"/> |
| 555 | + <argument name="contentTypeXCoordinate" value="10"/> |
| 556 | + <argument name="contentTypeYCoordinate" value="0"/> |
| 557 | + </actionGroup> |
| 558 | + <click selector="{{TextOnStage.wysiwyg('1')}}" stepKey="focusOnTextEditorArea2"/> |
| 559 | + <!-- Explicit wait for CSS animation to complete --> |
| 560 | + <wait time="1" stepKey="waitForInlineWysiwygToolbarTransitionAnimationToFinish2" /> |
| 561 | + <waitForElementVisible selector="{{PageBuilderStage.inlineWYSIWYGEditorPanel(PageBuilderTextContentType.role, '1')}}" stepKey="waitForWYWSIWYGEditorPanelToBeVisible2"/> |
| 562 | + <executeJS function="return document.evaluate(`{{PageBuilderStage.inlineWYSIWYGEditorPanel(PageBuilderTextContentType.role, '1')}}`, document.body).iterateNext().getBoundingClientRect().top" stepKey="topBoundingClientRect2"/> |
| 563 | + <!-- Assert top bounding client rect > 0 --> |
| 564 | + <comment userInput="Assert top bounding client rect > 0 when column is 1/3 its original size" stepKey="commentAssertInlineEditorAppearsInSmallerColumn" /> |
| 565 | + <assertGreaterThanOrEqual stepKey="assertTopBoundingClientRectIsGreaterThan0InSmallerColumn"> |
| 566 | + <expectedResult type="int">0</expectedResult> |
| 567 | + <actualResult type="variable">$topBoundingClientRect2</actualResult> |
| 568 | + </assertGreaterThanOrEqual> |
539 | 569 | </test>
|
540 | 570 | </tests>
|
0 commit comments