|
7 | 7 | -->
|
8 | 8 | <tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
9 | 9 | xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
|
10 |
| - <test name="ContentCanAddToStageDirectlyTest"> |
| 10 | + <test name="PageBuilderCMSPageAddContentDirectlyToStageTest"> |
11 | 11 | <annotations>
|
12 | 12 | <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"/> |
17 | 17 | <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"/> |
21 | 20 | </annotations>
|
22 | 21 | <before>
|
23 | 22 | <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
|
24 | 23 | <createData entity="_emptyCmsPage" stepKey="createCMSPage"/>
|
25 |
| - <createData entity="_defaultBlock" stepKey="createPreReqBlock"/> |
26 | 24 | <actionGroup ref="NavigateToCreatedCMSPageActionGroup" stepKey="navigateToCreatedCMSPage">
|
27 | 25 | <argument name="CMSPage" value="$$createCMSPage$$"/>
|
28 | 26 | </actionGroup>
|
29 | 27 | <actionGroup ref="AdminOpenPageBuilderFromContentPreviewOverlayActionGroup" stepKey="openPageBuilderFullScreen"/>
|
30 | 28 | </before>
|
31 | 29 | <after>
|
32 |
| - <deleteData createDataKey="createPreReqBlock" stepKey="deletePreReqBlock"/> |
33 | 30 | <deleteData createDataKey="createCMSPage" stepKey="deleteCMSPage"/>
|
34 | 31 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
|
35 | 32 | </after>
|
|
56 | 53 | <argument name="contentType" value="PageBuilderTextContentType"/>
|
57 | 54 | <argument name="containerTargetType" value="PageBuilderRootContainerContentType"/>
|
58 | 55 | </actionGroup>
|
59 |
| - <dontSeeElementInDOM selector="{{TextOnStage.base('1')}}" stepKey="dontSeeText"/> |
60 | 56 | <actionGroup ref="cannotDragContentTypeToTarget" stepKey="dragHeadingIntoStage">
|
61 | 57 | <argument name="contentType" value="PageBuilderHeadingContentType"/>
|
62 | 58 | <argument name="containerTargetType" value="PageBuilderRootContainerContentType"/>
|
63 | 59 | </actionGroup>
|
64 |
| - <dontSeeElementInDOM selector="{{HeadingOnStage.base('1')}}" stepKey="dontSeeHeading"/> |
65 | 60 | <actionGroup ref="cannotDragContentTypeToTarget" stepKey="dragButtonsIntoStage">
|
66 | 61 | <argument name="contentType" value="PageBuilderButtonsContentType"/>
|
67 | 62 | <argument name="containerTargetType" value="PageBuilderRootContainerContentType"/>
|
68 | 63 | </actionGroup>
|
69 |
| - <dontSeeElementInDOM selector="{{ButtonGroupOnStage.base('1')}}" stepKey="dontSeeButtonGroup"/> |
70 | 64 | <actionGroup ref="cannotDragContentTypeToTarget" stepKey="dragDividerIntoStage">
|
71 | 65 | <argument name="contentType" value="PageBuilderDividerContentType"/>
|
72 | 66 | <argument name="containerTargetType" value="PageBuilderRootContainerContentType"/>
|
73 | 67 | </actionGroup>
|
74 |
| - <dontSeeElementInDOM selector="{{DividerOnStage.allDividers}}" stepKey="dontSeeDivider"/> |
75 | 68 | <actionGroup ref="dragContentTypeToContainer" stepKey="dragHTMLIntoContainer">
|
76 | 69 | <argument name="contentType" value="PageBuilderHtmlContentType"/>
|
77 | 70 | <argument name="containerTargetType" value="PageBuilderRootContainerContentType"/>
|
78 | 71 | </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"/> |
86 | 72 | <actionGroup ref="expandPageBuilderPanelMenuSection" stepKey="expandPageBuilderPanelMenuSectionMedia">
|
87 | 73 | <argument name="contentType" value="PageBuilderVideoContentType"/>
|
88 | 74 | </actionGroup>
|
89 | 75 | <actionGroup ref="cannotDragContentTypeToTarget" stepKey="dragVideoIntoStage">
|
90 | 76 | <argument name="contentType" value="PageBuilderVideoContentType"/>
|
91 | 77 | <argument name="containerTargetType" value="PageBuilderRootContainerContentType"/>
|
92 | 78 | </actionGroup>
|
93 |
| - <dontSeeElementInDOM selector="{{VideoOnStage.base('1')}}" stepKey="dontSeeVideo"/> |
94 | 79 | <actionGroup ref="cannotDragContentTypeToTarget" stepKey="dragImageIntoStage">
|
95 | 80 | <argument name="contentType" value="PageBuilderImageContentType"/>
|
96 | 81 | <argument name="containerTargetType" value="PageBuilderRootContainerContentType"/>
|
97 | 82 | </actionGroup>
|
98 |
| - <dontSeeElementInDOM selector="{{ImageOnStageWithoutImageUploaded.base('1')}}" stepKey="dontSeeImage"/> |
99 | 83 | <actionGroup ref="cannotDragContentTypeToTarget" stepKey="dragMapIntoStage">
|
100 | 84 | <argument name="contentType" value="PageBuilderMapContentType"/>
|
101 | 85 | <argument name="containerTargetType" value="PageBuilderRootContainerContentType"/>
|
102 | 86 | </actionGroup>
|
103 |
| - <dontSeeElementInDOM selector="{{MapOnStage.base('1')}}" stepKey="dontSeeMap"/> |
104 | 87 | <actionGroup ref="cannotDragContentTypeToTarget" stepKey="dragSliderIntoStage">
|
105 | 88 | <argument name="contentType" value="PageBuilderSliderContentType"/>
|
106 | 89 | <argument name="containerTargetType" value="PageBuilderRootContainerContentType"/>
|
107 | 90 | </actionGroup>
|
108 |
| - <dontSeeElementInDOM selector="{{SliderOnStage.all}}" stepKey="dontSeeSlider"/> |
109 | 91 | <actionGroup ref="cannotDragContentTypeToTarget" stepKey="dragBannerIntoStage">
|
110 | 92 | <argument name="contentType" value="PageBuilderBannerContentType"/>
|
111 | 93 | <argument name="containerTargetType" value="PageBuilderRootContainerContentType"/>
|
112 | 94 | </actionGroup>
|
113 |
| - <dontSeeElementInDOM selector="{{BannerOnBackend.base('1')}}" stepKey="dontSeeBanner"/> |
114 | 95 | <actionGroup ref="expandPageBuilderPanelMenuSection" stepKey="expandMenuSectionContent">
|
115 | 96 | <argument name="contentType" value="PageBuilderBlockContentType"/>
|
116 | 97 | </actionGroup>
|
117 | 98 | <actionGroup ref="dragContentTypeToContainer" stepKey="dragBlockIntoContainer">
|
118 | 99 | <argument name="contentType" value="PageBuilderBlockContentType"/>
|
119 | 100 | <argument name="containerTargetType" value="PageBuilderRootContainerContentType"/>
|
120 | 101 | </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"/> |
128 | 102 | <actionGroup ref="cannotDragContentTypeToTarget" stepKey="dragProductsIntoStage">
|
129 | 103 | <argument name="contentType" value="PageBuilderProductsContentType"/>
|
130 | 104 | <argument name="containerTargetType" value="PageBuilderRootContainerContentType"/>
|
131 | 105 | </actionGroup>
|
132 |
| - <dontSeeElementInDOM selector="{{ProductsOnStage.base('1')}}" stepKey="dontSeeProducts"/> |
133 | 106 | <actionGroup ref="exitPageBuilderFullScreen" stepKey="exitPageBuilderFullScreen"/>
|
134 | 107 | <actionGroup ref="SaveAndContinueEditCmsPageActionGroup" stepKey="saveAndContinueEditCmsPage"/>
|
135 | 108 | <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
|
|
148 | 121 | <dontSeeElement selector="{{SliderOnStage.all}}" stepKey="dontSeeSliderAfterSave"/>
|
149 | 122 | <dontSeeElement selector="{{BannerOnBackend.base('1')}}" stepKey="dontSeeBannerAfterSave"/>
|
150 | 123 | <dontSeeElement selector="{{ProductsOnStage.base('1')}}" stepKey="dontSeeProductsAfterSave"/>
|
151 |
| - <actionGroup ref="exitPageBuilderFullScreen" stepKey="exitPageBuilderFullScreenAfterSave"/> |
152 | 124 | <actionGroup ref="NavigateToStorefrontForCreatedPageActionGroup" stepKey="navigateToCMSPageStorefront4">
|
153 | 125 | <argument name="page" value="$$createCMSPage.identifier$$"/>
|
154 | 126 | </actionGroup>
|
|
0 commit comments