|
1202 | 1202 | <argument name="buttonItemPage" value="ButtonItemOnStorefront"/>
|
1203 | 1203 | </actionGroup>
|
1204 | 1204 | </test>
|
| 1205 | + <test name="BlockRenderHTMLThroughBlockContentType"> |
| 1206 | + <annotations> |
| 1207 | + <features value="PageBuilder"/> |
| 1208 | + <stories value="Block Content"/> |
| 1209 | + <title value="Render HTML Through Block Content Type"/> |
| 1210 | + <description value="Verify that users are able to successfully render and use the HTML content type through the Block content type."/> |
| 1211 | + <severity value="CRITICAL"/> |
| 1212 | + <testCaseId value="MC-14806"/> |
| 1213 | + <useCaseId value="MC-13769"/> |
| 1214 | + <group value="pagebuilder"/> |
| 1215 | + <group value="pagebuilder-block"/> |
| 1216 | + <group value="pagebuilder-block-content"/> |
| 1217 | + <group value="pagebuilder-html"/> |
| 1218 | + </annotations> |
| 1219 | + <before> |
| 1220 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 1221 | + <createData entity="_emptyCmsPage" stepKey="createCMSPage"/> |
| 1222 | + <createData entity="_emptyCmsBlock" stepKey="createCMSBlock"/> |
| 1223 | + <actionGroup ref="navigateToCreatedCMSBlockPage" stepKey="navigateToCreatedCMSBlockPage1"> |
| 1224 | + <argument name="CMSBlockPage" value="$$createCMSBlock$$"/> |
| 1225 | + </actionGroup> |
| 1226 | + </before> |
| 1227 | + <after> |
| 1228 | + <deleteData createDataKey="createCMSBlock" stepKey="deleteCMSBlock"/> |
| 1229 | + <deleteData createDataKey="createCMSPage" stepKey="deleteCMSPage"/> |
| 1230 | + <actionGroup ref="logout" stepKey="logout"/> |
| 1231 | + </after> |
| 1232 | + <!-- Add HTML --> |
| 1233 | + <comment userInput="Add HTML" stepKey="commentAddHTML"/> |
| 1234 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup"> |
| 1235 | + <argument name="group" value="PageBuilderHtmlContentType"/> |
| 1236 | + </actionGroup> |
| 1237 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragHTMLIntoStage"> |
| 1238 | + <argument name="contentType" value="PageBuilderHtmlContentType"/> |
| 1239 | + </actionGroup> |
| 1240 | + <!-- Edit HTML --> |
| 1241 | + <comment userInput="Edit HTML" stepKey="commentEditHTML"/> |
| 1242 | + <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuHtml"> |
| 1243 | + <argument name="contentType" value="PageBuilderHtmlContentType"/> |
| 1244 | + </actionGroup> |
| 1245 | + <actionGroup ref="fillSlideOutPanelTextArea" stepKey="enterHtmlContent"> |
| 1246 | + <argument name="property" value="PageBuilderHtmlPropertyButton"/> |
| 1247 | + </actionGroup> |
| 1248 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettingsHtml"/> |
| 1249 | + <actionGroup ref="saveCMSBlock" stepKey="saveCMSBlock"/> |
| 1250 | + <!-- Validate CMS Block Stage --> |
| 1251 | + <comment userInput="Validate CMS Block Stage" stepKey="commentValidateCMSBlockStage"/> |
| 1252 | + <seeElement selector="{{HtmlOnStage.base('1')}}" stepKey="seeHtmlBaseBlockStage"/> |
| 1253 | + <seeElement selector="{{HtmlOnStage.html('1', PageBuilderHtmlPropertyButton.selector)}}" stepKey="seeHtmlBlockStage"/> |
| 1254 | + <!-- Add Block to CMS Page --> |
| 1255 | + <comment userInput="Add Block to CMS Page" stepKey="commentAddBlockToCMSPage"/> |
| 1256 | + <actionGroup ref="navigateToCreatedCMSPage" stepKey="navigateToCreatedCMSPage"> |
| 1257 | + <argument name="CMSPage" value="$$createCMSPage$$"/> |
| 1258 | + </actionGroup> |
| 1259 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandGroupAddContent"> |
| 1260 | + <argument name="group" value="PageBuilderBlockContentType"/> |
| 1261 | + </actionGroup> |
| 1262 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragBlockIntoStage"> |
| 1263 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 1264 | + </actionGroup> |
| 1265 | + <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditAfterDropBlock"> |
| 1266 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 1267 | + </actionGroup> |
| 1268 | + <actionGroup ref="searchBlockInGrid" stepKey="searchBlockInGrid"> |
| 1269 | + <argument name="block" value="$$createCMSBlock$$"/> |
| 1270 | + </actionGroup> |
| 1271 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettingsBlock"/> |
| 1272 | + <!-- Validate CMS Page Stage --> |
| 1273 | + <comment userInput="Validate CMS Page Stage" stepKey="commentValidateCMSPageStage"/> |
| 1274 | + <seeElement selector="{{HtmlOnStorefront.base('1')}}" stepKey="seeHtmlBasePageStage"/> |
| 1275 | + <seeElement selector="{{HtmlOnStorefront.html('1', PageBuilderHtmlPropertyButton.selector)}}" stepKey="seeHtmlPageStage"/> |
| 1276 | + <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/> |
| 1277 | + <!-- Validate CMS Page Storefront --> |
| 1278 | + <comment userInput="Validate CMS Page Storefront" stepKey="commentValidateCMSPageStorefront"/> |
| 1279 | + <actionGroup ref="navigateToStorefrontForCreatedPage" stepKey="navigateToStoreFront"> |
| 1280 | + <argument name="page" value="$$createCMSPage.identifier$$"/> |
| 1281 | + </actionGroup> |
| 1282 | + <seeElement selector="{{HtmlOnStorefront.base('1')}}" stepKey="seeHtmlBaseStorefront"/> |
| 1283 | + <seeElement selector="{{HtmlOnStorefront.html('1', PageBuilderHtmlPropertyButton.selectorOnFrontend)}}" stepKey="seeHtmlStorefront"/> |
| 1284 | + </test> |
1205 | 1285 | </tests>
|
0 commit comments