|
1501 | 1501 | <argument name="index" value="4"/>
|
1502 | 1502 | </actionGroup>
|
1503 | 1503 | </test>
|
| 1504 | + <test name="HeadingToolbarButtonsCanWrap"> |
| 1505 | + <annotations> |
| 1506 | + <features value="Pagebuilder"/> |
| 1507 | + <stories value="Heading"/> |
| 1508 | + <title value="Heading Toolbar Buttons Can Wrap"/> |
| 1509 | + <description value="Inline edit toolbar button items can wrap on multiple lines when in a one-sixth column"/> |
| 1510 | + <severity value="CRITICAL"/> |
| 1511 | + <useCaseId value="MAGETWO-88142"/> |
| 1512 | + <testCaseId value="MAGETWO-92000"/> |
| 1513 | + <group value="pagebuilder"/> |
| 1514 | + <group value="pagebuilder-heading"/> |
| 1515 | + </annotations> |
| 1516 | + <before> |
| 1517 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 1518 | + <actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/> |
| 1519 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 1520 | + </before> |
| 1521 | + <after> |
| 1522 | + <actionGroup ref="logout" stepKey="logout"/> |
| 1523 | + </after> |
| 1524 | + <actionGroup ref="dragContentTypeToContainer" stepKey="dragFirstTwoColumns"> |
| 1525 | + <argument name="contentType" value="PageBuilderColumnContentType"/> |
| 1526 | + <argument name="containerTargetType" value="PageBuilderRowContentType"/> |
| 1527 | + <argument name="containerTargetIndex" value="1"/> |
| 1528 | + <argument name="contentTypeIndex" value="1"/> |
| 1529 | + </actionGroup> |
| 1530 | + <actionGroup ref="dragContentTypeToContainer" stepKey="dragThirdColumn"> |
| 1531 | + <argument name="contentType" value="PageBuilderColumnContentType"/> |
| 1532 | + <argument name="containerTargetType" value="PageBuilderColumnContentType"/> |
| 1533 | + <argument name="containerTargetIndex" value="1" /> |
| 1534 | + <argument name="contentTypeIndex" value="3"/> |
| 1535 | + </actionGroup> |
| 1536 | + <actionGroup ref="dragContentTypeToContainer" stepKey="dragHeading1ToFirstColumn"> |
| 1537 | + <argument name="contentType" value="PageBuilderHeadingContentType"/> |
| 1538 | + <argument name="containerTargetType" value="PageBuilderColumnContentType"/> |
| 1539 | + <argument name="containerTargetIndex" value="1"/> |
| 1540 | + <argument name="contentTypeIndex" value="1"/> |
| 1541 | + </actionGroup> |
| 1542 | + <resizeWindow width="767" height="1000" stepKey="resizeWindowToMobile"/> |
| 1543 | + <!-- Stage: Check toolbar buttons have wrapped --> |
| 1544 | + <comment userInput="Stage: Check toolbar buttons have wrapped" stepKey="commentStageCheckToolbarButtonsAreWrapped"/> |
| 1545 | + <executeJS function="{{HeadingOnStage.headingToolbarButtonViewportPositionTop('first')}}" stepKey="actualFirstButtonYPosition"/> |
| 1546 | + <executeJS function="{{HeadingOnStage.headingToolbarButtonViewportPositionTop('last')}}" stepKey="actualLastButtonYPosition"/> |
| 1547 | + <!-- Assert first button y-coordinate is less than last button y-coordinate --> |
| 1548 | + <assertLessThan message="AssertButtonPositions" stepKey="assertSecondButtonIsBelowFirstButton"> |
| 1549 | + <actualResult type="variable">actualFirstButtonYPosition</actualResult> |
| 1550 | + <expectedResult type="variable">actualLastButtonYPosition</expectedResult> |
| 1551 | + </assertLessThan> |
| 1552 | + </test> |
1504 | 1553 | </tests>
|
0 commit comments