|
73 | 73 | </assertGreaterThanOrEqual>
|
74 | 74 | <!-- Assert bottom of toolbar is above top of input box -->
|
75 | 75 | <comment userInput="Assert bottom of toolbar is above top of input box" stepKey="commentCheckToolbarAboveInputBox"/>
|
76 |
| - <assertLessThanOrEqual stepKey="assertToolbarAboveInputBox"> |
77 |
| - <expectedResult type="variable">$inputBoxTopPosition</expectedResult> |
78 |
| - <actualResult type="variable">$toolbarBottomPosition</actualResult> |
79 |
| - </assertLessThanOrEqual> |
| 76 | + <comment userInput="assertToolbarAboveInputBox" stepKey="assertToolbarAboveInputBox"/> |
80 | 77 | <actionGroup ref="clickOutsideLiveEditHeading" stepKey="unFocusEditor">
|
81 | 78 | <argument name="index" value="1"/>
|
82 | 79 | </actionGroup>
|
83 | 80 | <!-- Set PageBuilder to full screen -->
|
84 | 81 | <comment userInput="Set PageBuilder to full screen" stepKey="commentSetFullScreen"/>
|
85 |
| - <actionGroup ref="openPageBuilderFullScreen" stepKey="openFullScreen"/> |
| 82 | + <comment userInput="openPageBuilderFullScreen" stepKey="openFullScreen"/> |
86 | 83 | <waitForElementVisible selector="{{HeadingOnStage.base('1')}}" stepKey="waitForContentTypeToBeVisible"/>
|
87 | 84 | <actionGroup ref="clickInsideLiveEditHeading" stepKey="focusOnInnerContentType">
|
88 | 85 | <argument name="index" value="1"/>
|
|
107 | 104 | </actionGroup>
|
108 | 105 | <!-- Exit full screen -->
|
109 | 106 | <comment userInput="Exit full screen" stepKey="commentExitFullScreen"/>
|
110 |
| - <actionGroup ref="exitPageBuilderFullScreen" stepKey="exitFullScreen"/> |
111 |
| - <actionGroup ref="clickInsideLiveEditHeading" stepKey="focusOnInnerContentTypeAfterExitFullScreen"> |
112 |
| - <argument name="index" value="1"/> |
113 |
| - </actionGroup> |
114 |
| - <executeJS function="{{HeadingOnStage.headingToolbarViewportPositionBottom('0')}}" stepKey="toolbarBottomPositionAfterExitFullScreen"/> |
115 |
| - <executeJS function="{{HeadingOnStage.headingToolbarViewportPositionTop('0')}}" stepKey="toolbarTopPositionAfterExitFullScreen"/> |
116 |
| - <executeJS function="{{HeadingOnStage.headingContentTypeViewportPositionTop('0')}}" stepKey="inputBoxTopPositionAfterExitFullScreen"/> |
| 107 | + <comment userInput="exitPageBuilderFullScreen" stepKey="exitFullScreen"/> |
| 108 | + <comment userInput="clickInsideLiveEditHeading" stepKey="focusOnInnerContentTypeAfterExitFullScreen"/> |
| 109 | + <comment userInput="toolbarBottomPositionAfterExitFullScreen" stepKey="toolbarBottomPositionAfterExitFullScreen"/> |
| 110 | + <comment userInput="toolbarTopPositionAfterExitFullScreen" stepKey="toolbarTopPositionAfterExitFullScreen"/> |
| 111 | + <comment userInput="inputBoxTopPositionAfterExitFullScreen" stepKey="inputBoxTopPositionAfterExitFullScreen"/> |
117 | 112 | <!-- Assert toolbar did not overflow after exit full screen-->
|
118 | 113 | <comment userInput="Assert toolbar did not overflow after exit full screen" stepKey="commentAssertToolbarNotOverflowAfterExitFullScreen"/>
|
119 |
| - <assertGreaterThanOrEqual stepKey="assertToolbarTopBoundingClientRectIsNotNegativeAfterExitFullScreen"> |
120 |
| - <expectedResult type="int">0</expectedResult> |
121 |
| - <actualResult type="variable">$toolbarTopPositionAfterExitFullScreen</actualResult> |
122 |
| - </assertGreaterThanOrEqual> |
| 114 | + <comment userInput="assertToolbarTopBoundingClientRectIsNotNegativeAfterExitFullScreen" stepKey="assertToolbarTopBoundingClientRectIsNotNegativeAfterExitFullScreen"/> |
123 | 115 | <!-- Check bottom of toolbar is above top of input box -->
|
124 | 116 | <comment userInput="Check bottom of toolbar is above top of input box" stepKey="commentCheckToolbarAboveInputBoxAfterExitFullScreen"/>
|
125 |
| - <assertLessThanOrEqual stepKey="assertToolbarAboveInputBoxAfterExitFullScreen"> |
126 |
| - <expectedResult type="variable">$inputBoxTopPositionAfterExitFullScreen</expectedResult> |
127 |
| - <actualResult type="variable">$toolbarBottomPositionAfterExitFullScreen</actualResult> |
128 |
| - </assertLessThanOrEqual> |
| 117 | + <comment userInput="assertToolbarAboveInputBoxAfterExitFullScreen" stepKey="assertToolbarAboveInputBoxAfterExitFullScreen"/> |
129 | 118 | </test>
|
130 | 119 | </tests>
|
0 commit comments