|
1574 | 1574 | <expectedResult type="variable">actualLastButtonYPosition</expectedResult>
|
1575 | 1575 | </assertLessThan>
|
1576 | 1576 | </test>
|
| 1577 | + <test name="HeadingToolbarHideOnDrag"> |
| 1578 | + <annotations> |
| 1579 | + <features value="PageBuilder"/> |
| 1580 | + <stories value="Heading"/> |
| 1581 | + <title value="Stage Edit - Heading Toolbar should hide on drag action"/> |
| 1582 | + <description value="Heading live edit should become unfocused on drag action"/> |
| 1583 | + <severity value="MINOR"/> |
| 1584 | + <useCaseId value="MC-843"/> |
| 1585 | + <testCaseId value="MC-3540"/> |
| 1586 | + <group value="pagebuilder"/> |
| 1587 | + <group value="pagebuilder-heading"/> |
| 1588 | + </annotations> |
| 1589 | + <before> |
| 1590 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 1591 | + <actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/> |
| 1592 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 1593 | + </before> |
| 1594 | + <after> |
| 1595 | + <actionGroup ref="logout" stepKey="logout"/> |
| 1596 | + </after> |
| 1597 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup"> |
| 1598 | + <argument name="group" value="PageBuilderHeadingContentType"/> |
| 1599 | + </actionGroup> |
| 1600 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragHeadingIntoStage"> |
| 1601 | + <argument name="contentType" value="PageBuilderHeadingContentType"/> |
| 1602 | + </actionGroup> |
| 1603 | + <!-- Validate Heading edit toolbar shows after dragging in --> |
| 1604 | + <comment userInput="Validate Heading edit toolbar" stepKey="CommentHeadingEditToolbar"/> |
| 1605 | + <seeElement selector="{{HeadingOnStage.headingToolbar('1')}}" stepKey="seeHeadingToolbar"/> |
| 1606 | + <!-- Check if clicking on draggable content, the heading input loses focus and the toolbar hides --> |
| 1607 | + <comment userInput="When click on draggable content, heading input loses focus, toolbar disappears, and placeholder displays Enter Heading Text" stepKey="commentClickOnDraggable"/> |
| 1608 | + <click selector="{{PageBuilderPanel.draggableContentTypeInPanel(PageBuilderHeadingContentType.name)}}" stepKey="clickDraggableInPanel"/> |
| 1609 | + <dontSeeElement selector="{{HeadingOnStage.headingToolbar('1')}}" stepKey="dontSeeHeadingToolbar"/> |
| 1610 | + <!-- Check if heading toolbar shows after focusing on heading content type --> |
| 1611 | + <comment userInput="When click inside heading see heading input gain focus, placeholder disappears and WYSIWYG toolbar appears" stepKey="commentClickInsideHeading"/> |
| 1612 | + <actionGroup ref="clickInsideLiveEditHeading" stepKey="clickInsideLiveEditHeading"> |
| 1613 | + <argument name="index" value="1"/> |
| 1614 | + </actionGroup> |
| 1615 | + <seeElement selector="{{HeadingOnStage.headingToolbar('1')}}" stepKey="seeHeadingToolbar2"/> |
| 1616 | + </test> |
1577 | 1617 | </tests>
|
0 commit comments