|
671 | 671 | </actionGroup>
|
672 | 672 | <dontSeeElementInDOM selector="{{BlockOnStage.base('1')}}" stepKey="dontSeeBlock"/>
|
673 | 673 | </test>
|
| 674 | + <test name="BlockCanAddToColumn"> |
| 675 | + <annotations> |
| 676 | + <features value="PageBuilder"/> |
| 677 | + <stories value="Block"/> |
| 678 | + <title value="Add Block to Column container and view on Admin and Storefront"/> |
| 679 | + <description value="As a Content Manager I want column to be a container so that I can add Block inside"/> |
| 680 | + <severity value="CRITICAL"/> |
| 681 | + <useCaseId value="MC-515"/> |
| 682 | + <testCaseId value="MC-3118"/> |
| 683 | + <group value="pagebuilder"/> |
| 684 | + <group value="pagebuilder-column"/> |
| 685 | + <group value="pagebuilder-block"/> |
| 686 | + <group value="pagebuilder-addToColumn"/> |
| 687 | + </annotations> |
| 688 | + <before> |
| 689 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 690 | + <actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/> |
| 691 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 692 | + </before> |
| 693 | + <after> |
| 694 | + <actionGroup ref="logout" stepKey="logout"/> |
| 695 | + </after> |
| 696 | + <actionGroup ref="addPageBuilderPageTitle" stepKey="enterPageTitle"> |
| 697 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 698 | + </actionGroup> |
| 699 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragColumnIntoStage"> |
| 700 | + <argument name="contentType" value="PageBuilderColumnContentType"/> |
| 701 | + </actionGroup> |
| 702 | + <!-- Add Block to Stage --> |
| 703 | + <comment userInput="Add Block to Stage" stepKey="addBlockToStage"/> |
| 704 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandGroupInteractive"> |
| 705 | + <argument name="group" value="PageBuilderBlockContentType"/> |
| 706 | + </actionGroup> |
| 707 | + <actionGroup ref="dragContentTypeToContainerAndExpectEditPanel" stepKey="dragBlockOntoColumn"> |
| 708 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 709 | + <argument name="containerTargetType" value="PageBuilderColumnContentType"/> |
| 710 | + <argument name="containerTargetIndex" value="2" /> |
| 711 | + </actionGroup> |
| 712 | + <actionGroup ref="closeEditPanelSettings" stepKey="closeEditPanel"/> |
| 713 | + <!-- Validate Stage --> |
| 714 | + <comment userInput="User sees Block displayed in column on Stage" stepKey="confirmBlockOnStage"/> |
| 715 | + <actionGroup ref="validateContentTypeInsideContainerStage" stepKey="checkContentTypeInContainerStage"> |
| 716 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 717 | + <argument name="containerTargetType" value="PageBuilderColumnContentType"/> |
| 718 | + <argument name="contentTypeIndex" value="1"/> |
| 719 | + <argument name="containerTargetIndex" value="2"/> |
| 720 | + </actionGroup> |
| 721 | + <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/> |
| 722 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage2"/> |
| 723 | + <!-- Validate Stage After Save --> |
| 724 | + <comment userInput="Validate stage after save" stepKey="validateBlockOnStage"/> |
| 725 | + <actionGroup ref="validateContentTypeInsideContainerStage" stepKey="checkContentTypeInContainerStage2"> |
| 726 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 727 | + <argument name="containerTargetType" value="PageBuilderColumnContentType"/> |
| 728 | + <argument name="contentTypeIndex" value="1"/> |
| 729 | + <argument name="containerTargetIndex" value="2"/> |
| 730 | + </actionGroup> |
| 731 | + <!-- Validate Storefront --> |
| 732 | + <comment userInput="View Block inside column on storefront" stepKey="viewBlockOnStorefront"/> |
| 733 | + <actionGroup ref="navigateToStoreFront" stepKey="navigateToStoreFront"> |
| 734 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 735 | + </actionGroup> |
| 736 | + <actionGroup ref="validateContentTypeInsideContainerStorefrontInDOM" stepKey="checkContentTypeInContainerStorefront"> |
| 737 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 738 | + <argument name="containerTargetType" value="PageBuilderColumnContentType"/> |
| 739 | + <argument name="contentTypeIndex" value="1"/> |
| 740 | + <argument name="containerTargetIndex" value="2"/> |
| 741 | + </actionGroup> |
| 742 | + </test> |
674 | 743 | </tests>
|
0 commit comments