|
350 | 350 | <argument name="contentBlockIndex" value="1"/>
|
351 | 351 | </actionGroup>
|
352 | 352 | </test>
|
| 353 | + <test name="ColumnDragColumnWithContentBetweenColumnGroups"> |
| 354 | + <annotations> |
| 355 | + <features value="Pagebuilder"/> |
| 356 | + <stories value="Column"/> |
| 357 | + <title value="Add Column group below existing columns group on stage"/> |
| 358 | + <description value="User sees row adjusting height when a second column group is created"/> |
| 359 | + <severity value="CRITICAL"/> |
| 360 | + <testCaseId value="MAGETWO-87113"/> |
| 361 | + <group value="pagebuilder"/> |
| 362 | + <group value="pagebuilder-column"/> |
| 363 | + <group value="pagebuilder-heading"/> |
| 364 | + </annotations> |
| 365 | + <before> |
| 366 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 367 | + <actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/> |
| 368 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 369 | + </before> |
| 370 | + <after> |
| 371 | + <actionGroup ref="logout" stepKey="logout"/> |
| 372 | + </after> |
| 373 | + <actionGroup ref="dragContentBlockToStage" stepKey="dragFirstColumnIntoStage"> |
| 374 | + <argument name="contentBlockType" value="PageBuilderColumnContentBlock"/> |
| 375 | + </actionGroup> |
| 376 | + <comment userInput="Drag Column beneath existing columns to make a new column group" stepKey="commentDragColumnBelowColumns"/> |
| 377 | + <actionGroup ref="dragContentBlockToDropZone" stepKey="dragColumnIntoStage"> |
| 378 | + <argument name="contentBlockType" value="PageBuilderColumnContentBlock"/> |
| 379 | + <argument name="contentBlockIndex" value="4"/> |
| 380 | + <argument name="containerTargetType" value="PageBuilderRowContentBlock"/> |
| 381 | + <argument name="containerTargetIndex" value="1"/> |
| 382 | + <argument name="dropZoneIndex" value="2"/> |
| 383 | + </actionGroup> |
| 384 | + <seeNumberOfElements selector="{{PageBuilderColumnSection.columnGroupColumns('1')}}" userInput="2" stepKey="seeTwoColumnsFirstGroup"/> |
| 385 | + <seeNumberOfElements selector="{{PageBuilderColumnSection.columnGroupColumns('2')}}" userInput="2" stepKey="seeTwoColumnsSecondGroup"/> |
| 386 | + <seeNumberOfElements selector="{{PageBuilderColumnSection.allColumns}}" userInput="4" stepKey="validateColumnGroupAdded"/> |
| 387 | + <comment userInput="Drag new column onto first group" stepKey="commentDragColumnToFirstColumnGroup"/> |
| 388 | + <actionGroup ref="dragContentBlockToContainer" stepKey="dragColumnIntoFirstColumnGroup"> |
| 389 | + <argument name="contentBlockType" value="PageBuilderColumnContentBlock"/> |
| 390 | + <argument name="contentBlockIndex" value="3"/> |
| 391 | + <argument name="containerTargetType" value="PageBuilderColumnContentBlock"/> |
| 392 | + <argument name="containerTargetIndex" value="2"/> |
| 393 | + </actionGroup> |
| 394 | + <seeNumberOfElements selector="{{PageBuilderColumnSection.columnGroupColumns('1')}}" userInput="3" stepKey="seeThreeColumnsFirstGroup"/> |
| 395 | + <seeNumberOfElements selector="{{PageBuilderColumnSection.allColumns}}" userInput="5" stepKey="validateFiveTotalColumns"/> |
| 396 | + <actionGroup ref="dragContentBlockToContainer" stepKey="dragHeadingIntoColumn"> |
| 397 | + <argument name="contentBlockType" value="PageBuilderHeadingContentBlock"/> |
| 398 | + <argument name="contentBlockIndex" value="1"/> |
| 399 | + <argument name="containerTargetType" value="PageBuilderColumnContentBlock"/> |
| 400 | + <argument name="containerTargetIndex" value="3"/> |
| 401 | + </actionGroup> |
| 402 | + <comment userInput="Validate heading is in third column" stepKey="commentConfirmHeadingInThirdColumn"/> |
| 403 | + |
| 404 | + <actionGroup ref="validateContentBlockInsideContainerStage" stepKey="confirmHeadingInThirdColumn"> |
| 405 | + <argument name="containerTargetType" value="PageBuilderColumnContentBlock"/> |
| 406 | + <argument name="containerTargetIndex" value="3"/> |
| 407 | + <argument name="positionInContainer" value="1"/> |
| 408 | + <argument name="contentBlockType" value="PageBuilderHeadingContentBlock"/> |
| 409 | + <argument name="contentBlockIndex" value="1"/> |
| 410 | + </actionGroup> |
| 411 | + <actionGroup ref="clickOutsideLiveEditHeading" stepKey="clickOutsideLiveEditHeading"> |
| 412 | + <argument name="index" value="1"/> |
| 413 | + </actionGroup> |
| 414 | + <comment userInput="Move column containing heading from first to second column group" stepKey="commentMoveColumnToSecondGroup"/> |
| 415 | + <actionGroup ref="dragColumnToAnotherColumnGroup" stepKey="moveColumnToSecondGroup"> |
| 416 | + <argument name="contentBlockIndex" value="3"/> |
| 417 | + <argument name="containerTargetIndex" value="5"/> |
| 418 | + </actionGroup> |
| 419 | + <seeNumberOfElements selector="{{PageBuilderColumnSection.allColumns}}" userInput="5" stepKey="validateSameNumberOfColumns"/> |
| 420 | + <seeNumberOfElements selector="{{PageBuilderColumnSection.columnGroupColumns('1')}}" userInput="2" stepKey="seeTwoColumnsFirstGroupAgain"/> |
| 421 | + <seeNumberOfElements selector="{{PageBuilderColumnSection.columnGroupColumns('2')}}" userInput="3" stepKey="seeThreeColumnsSecondGroup"/> |
| 422 | + <seeNumberOfElements selector="{{PageBuilderActionsSection.contentBlockInStage(PageBuilderHeadingContentBlock.role)}}" userInput="1" stepKey="validateOnlySingleHeadingAfterMove" /> |
| 423 | + <actionGroup ref="validateContentBlockInsideContainerStage" stepKey="confirmHeadingInMovedColumn"> |
| 424 | + <argument name="containerTargetType" value="PageBuilderColumnContentBlock"/> |
| 425 | + <argument name="containerTargetIndex" value="4"/> |
| 426 | + <argument name="positionInContainer" value="1"/> |
| 427 | + <argument name="contentBlockType" value="PageBuilderHeadingContentBlock"/> |
| 428 | + <argument name="contentBlockIndex" value="1"/> |
| 429 | + </actionGroup> |
| 430 | + </test> |
353 | 431 | </tests>
|
0 commit comments