|
2640 | 2640 | </actionGroup>
|
2641 | 2641 | <!--Input text into stage-->
|
2642 | 2642 | <comment userInput="Input text into stage" stepKey="commentInputTextIntoStage"/>
|
2643 |
| - <click selector="{{TextOnStage.tinymce('1')}}" stepKey="focusOnEditorArea"/> |
2644 |
| - <pressKey selector="{{TextOnStage.tinymce('1')}}" userInput="{{PageBuilderTextProperty.value}}" stepKey="fillTextToTinyMCE4"/> |
2645 |
| - <click selector="{{PageBuilderPanel.searchPanel}}" stepKey="lostFocusFromWYSIWYG1"/> |
| 2643 | + <actionGroup ref="inlineEditTextWYSIWYGFromStage" stepKey="inlineEdit"> |
| 2644 | + <argument name="content" value="{{PageBuilderTextProperty.value}}"/> |
| 2645 | + </actionGroup> |
2646 | 2646 | <executeJS function="return document.evaluate("{{TextOnStage.base('1'))}}", document.body).iterateNext().offsetHeight;" stepKey="getTextOnStageHeight"/>
|
2647 | 2647 | <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage2"/>
|
2648 |
| - <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage2"/> |
2649 | 2648 | <!--Get storefront information-->
|
2650 | 2649 | <comment userInput="Get storefront information" stepKey="commentGetStorefrontInformation"/>
|
2651 | 2650 | <amOnPage url="$$createCMSPage.identifier$$" stepKey="amOnPageTestPage"/>
|
2652 | 2651 | <waitForPageLoad stepKey="waitForStorefront"/>
|
2653 | 2652 | <waitForElement selector="{{TextOnStorefront.base('1')}}" stepKey="waitForTextOnStorefront"/>
|
2654 | 2653 | <executeJS function="return document.evaluate("{{TextOnStorefront.base('1'))}}", document.body).iterateNext().offsetHeight;" stepKey="getTextOnStorefrontHeight"/>
|
2655 |
| - <executeJS function="return Math.abs({$getTextOnStageHeight} - ${getTextOnStorefrontHeight}) <= 2" stepKey="getStageAndStorefrontHeightDifference"/> |
2656 |
| - <assertTrue stepKey="assertStageAndStorefrontHeightAreClose"> |
| 2654 | + <executeJS function="return Math.abs({$getTextOnStageHeight} - {$getTextOnStorefrontHeight})" stepKey="getStageAndStorefrontHeightDifference"/> |
| 2655 | + <assertLessThanOrEqual stepKey="assertStageAndStorefrontHeightAreClose"> |
| 2656 | + <expectedResult type="int">2</expectedResult> |
2657 | 2657 | <actualResult type="variable">getStageAndStorefrontHeightDifference</actualResult>
|
2658 |
| - </assertTrue> |
| 2658 | + </assertLessThanOrEqual> |
2659 | 2659 | </test>
|
2660 | 2660 | </tests>
|
0 commit comments