Skip to content

Commit 4b54fad

Browse files
committed
#429: User can add content to the Stage directly
- ContentCanAddToStageDirectlyTest moved to AdminCMSPagePageBuilderTest folder and renamed to PageBuilderCMSPageAddContentDirectlyToStageTest - made changes for checking on Stage
1 parent a1c1fbe commit 4b54fad

File tree

1 file changed

+7
-35
lines changed

1 file changed

+7
-35
lines changed

app/code/Magento/PageBuilder/Test/Mftf/Test/AdminPageBuilderCommonTest/ContentCanAddToStageDirectlyTest.xml renamed to app/code/Magento/PageBuilder/Test/Mftf/Test/AdminCMSPagePageBuilderTest/PageBuilderCMSPageAddContentDirectlyToStageTest.xml

Lines changed: 7 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,26 @@
77
-->
88
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
99
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
10-
<test name="ContentCanAddToStageDirectlyTest">
10+
<test name="PageBuilderCMSPageAddContentDirectlyToStageTest">
1111
<annotations>
1212
<features value="PageBuilder"/>
13-
<stories value="Row"/>
14-
<title value="Can add Row, Tabs, Column, HTML Code to Stage directly"/>
15-
<description value="If user drags content to stage it is added to stage"/>
16-
<severity value="CRITICAL"/>
13+
<stories value="CMS Page"/>
14+
<title value="Verify Can Only Add Expected Content Types to Stage Directly"/>
15+
<description value="Verify user can add Row, Columns, Tabs, HTML Code, and Blocks to stage directly. Verify user cannot add any other content type to stage directly"/>
16+
<severity value="BLOCKER"/>
1717
<group value="pagebuilder"/>
18-
<group value="pagebuilder-row"/>
19-
<group value="pagebuilder-tabs"/>
20-
<group value="pagebuilder-column"/>
18+
<group value="pagebuilder-stage"/>
19+
<group value="pagebuilder-cms-page"/>
2120
</annotations>
2221
<before>
2322
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
2423
<createData entity="_emptyCmsPage" stepKey="createCMSPage"/>
25-
<createData entity="_defaultBlock" stepKey="createPreReqBlock"/>
2624
<actionGroup ref="NavigateToCreatedCMSPageActionGroup" stepKey="navigateToCreatedCMSPage">
2725
<argument name="CMSPage" value="$$createCMSPage$$"/>
2826
</actionGroup>
2927
<actionGroup ref="AdminOpenPageBuilderFromContentPreviewOverlayActionGroup" stepKey="openPageBuilderFullScreen"/>
3028
</before>
3129
<after>
32-
<deleteData createDataKey="createPreReqBlock" stepKey="deletePreReqBlock"/>
3330
<deleteData createDataKey="createCMSPage" stepKey="deleteCMSPage"/>
3431
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
3532
</after>
@@ -56,80 +53,56 @@
5653
<argument name="contentType" value="PageBuilderTextContentType"/>
5754
<argument name="containerTargetType" value="PageBuilderRootContainerContentType"/>
5855
</actionGroup>
59-
<dontSeeElementInDOM selector="{{TextOnStage.base('1')}}" stepKey="dontSeeText"/>
6056
<actionGroup ref="cannotDragContentTypeToTarget" stepKey="dragHeadingIntoStage">
6157
<argument name="contentType" value="PageBuilderHeadingContentType"/>
6258
<argument name="containerTargetType" value="PageBuilderRootContainerContentType"/>
6359
</actionGroup>
64-
<dontSeeElementInDOM selector="{{HeadingOnStage.base('1')}}" stepKey="dontSeeHeading"/>
6560
<actionGroup ref="cannotDragContentTypeToTarget" stepKey="dragButtonsIntoStage">
6661
<argument name="contentType" value="PageBuilderButtonsContentType"/>
6762
<argument name="containerTargetType" value="PageBuilderRootContainerContentType"/>
6863
</actionGroup>
69-
<dontSeeElementInDOM selector="{{ButtonGroupOnStage.base('1')}}" stepKey="dontSeeButtonGroup"/>
7064
<actionGroup ref="cannotDragContentTypeToTarget" stepKey="dragDividerIntoStage">
7165
<argument name="contentType" value="PageBuilderDividerContentType"/>
7266
<argument name="containerTargetType" value="PageBuilderRootContainerContentType"/>
7367
</actionGroup>
74-
<dontSeeElementInDOM selector="{{DividerOnStage.allDividers}}" stepKey="dontSeeDivider"/>
7568
<actionGroup ref="dragContentTypeToContainer" stepKey="dragHTMLIntoContainer">
7669
<argument name="contentType" value="PageBuilderHtmlContentType"/>
7770
<argument name="containerTargetType" value="PageBuilderRootContainerContentType"/>
7871
</actionGroup>
79-
<actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuHtml">
80-
<argument name="contentType" value="PageBuilderHtmlContentType"/>
81-
</actionGroup>
82-
<actionGroup ref="fillSlideOutPanelTextArea" stepKey="enterHtmlContent">
83-
<argument name="property" value="PageBuilderHtmlPropertyButton"/>
84-
</actionGroup>
85-
<actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettingsHtml"/>
8672
<actionGroup ref="expandPageBuilderPanelMenuSection" stepKey="expandPageBuilderPanelMenuSectionMedia">
8773
<argument name="contentType" value="PageBuilderVideoContentType"/>
8874
</actionGroup>
8975
<actionGroup ref="cannotDragContentTypeToTarget" stepKey="dragVideoIntoStage">
9076
<argument name="contentType" value="PageBuilderVideoContentType"/>
9177
<argument name="containerTargetType" value="PageBuilderRootContainerContentType"/>
9278
</actionGroup>
93-
<dontSeeElementInDOM selector="{{VideoOnStage.base('1')}}" stepKey="dontSeeVideo"/>
9479
<actionGroup ref="cannotDragContentTypeToTarget" stepKey="dragImageIntoStage">
9580
<argument name="contentType" value="PageBuilderImageContentType"/>
9681
<argument name="containerTargetType" value="PageBuilderRootContainerContentType"/>
9782
</actionGroup>
98-
<dontSeeElementInDOM selector="{{ImageOnStageWithoutImageUploaded.base('1')}}" stepKey="dontSeeImage"/>
9983
<actionGroup ref="cannotDragContentTypeToTarget" stepKey="dragMapIntoStage">
10084
<argument name="contentType" value="PageBuilderMapContentType"/>
10185
<argument name="containerTargetType" value="PageBuilderRootContainerContentType"/>
10286
</actionGroup>
103-
<dontSeeElementInDOM selector="{{MapOnStage.base('1')}}" stepKey="dontSeeMap"/>
10487
<actionGroup ref="cannotDragContentTypeToTarget" stepKey="dragSliderIntoStage">
10588
<argument name="contentType" value="PageBuilderSliderContentType"/>
10689
<argument name="containerTargetType" value="PageBuilderRootContainerContentType"/>
10790
</actionGroup>
108-
<dontSeeElementInDOM selector="{{SliderOnStage.all}}" stepKey="dontSeeSlider"/>
10991
<actionGroup ref="cannotDragContentTypeToTarget" stepKey="dragBannerIntoStage">
11092
<argument name="contentType" value="PageBuilderBannerContentType"/>
11193
<argument name="containerTargetType" value="PageBuilderRootContainerContentType"/>
11294
</actionGroup>
113-
<dontSeeElementInDOM selector="{{BannerOnBackend.base('1')}}" stepKey="dontSeeBanner"/>
11495
<actionGroup ref="expandPageBuilderPanelMenuSection" stepKey="expandMenuSectionContent">
11596
<argument name="contentType" value="PageBuilderBlockContentType"/>
11697
</actionGroup>
11798
<actionGroup ref="dragContentTypeToContainer" stepKey="dragBlockIntoContainer">
11899
<argument name="contentType" value="PageBuilderBlockContentType"/>
119100
<argument name="containerTargetType" value="PageBuilderRootContainerContentType"/>
120101
</actionGroup>
121-
<actionGroup ref="openPageBuilderEditPanel" stepKey="openEditAfterDropBlock">
122-
<argument name="contentType" value="PageBuilderBlockContentType"/>
123-
</actionGroup>
124-
<actionGroup ref="searchBlockInGrid" stepKey="searchBlockInPageGrid">
125-
<argument name="block" value="$$createPreReqBlock$$"/>
126-
</actionGroup>
127-
<actionGroup ref="saveEditPanelSettings" stepKey="savePageEditPanelSettingsBlock"/>
128102
<actionGroup ref="cannotDragContentTypeToTarget" stepKey="dragProductsIntoStage">
129103
<argument name="contentType" value="PageBuilderProductsContentType"/>
130104
<argument name="containerTargetType" value="PageBuilderRootContainerContentType"/>
131105
</actionGroup>
132-
<dontSeeElementInDOM selector="{{ProductsOnStage.base('1')}}" stepKey="dontSeeProducts"/>
133106
<actionGroup ref="exitPageBuilderFullScreen" stepKey="exitPageBuilderFullScreen"/>
134107
<actionGroup ref="SaveAndContinueEditCmsPageActionGroup" stepKey="saveAndContinueEditCmsPage"/>
135108
<actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
@@ -148,7 +121,6 @@
148121
<dontSeeElement selector="{{SliderOnStage.all}}" stepKey="dontSeeSliderAfterSave"/>
149122
<dontSeeElement selector="{{BannerOnBackend.base('1')}}" stepKey="dontSeeBannerAfterSave"/>
150123
<dontSeeElement selector="{{ProductsOnStage.base('1')}}" stepKey="dontSeeProductsAfterSave"/>
151-
<actionGroup ref="exitPageBuilderFullScreen" stepKey="exitPageBuilderFullScreenAfterSave"/>
152124
<actionGroup ref="NavigateToStorefrontForCreatedPageActionGroup" stepKey="navigateToCMSPageStorefront4">
153125
<argument name="page" value="$$createCMSPage.identifier$$"/>
154126
</actionGroup>

0 commit comments

Comments
 (0)