|
1282 | 1282 | <seeElement selector="{{HtmlOnStorefront.base('1')}}" stepKey="seeHtmlBaseStorefront"/>
|
1283 | 1283 | <seeElement selector="{{HtmlOnStorefront.html('1', PageBuilderHtmlPropertyButton.selectorOnFrontend)}}" stepKey="seeHtmlStorefront"/>
|
1284 | 1284 | </test>
|
| 1285 | + <test name="BlockRenderVideoThroughBlockContentType"> |
| 1286 | + <annotations> |
| 1287 | + <features value="PageBuilder"/> |
| 1288 | + <stories value="Block Content"/> |
| 1289 | + <title value="Render Video Through Block Content Type"/> |
| 1290 | + <description value="Verify that users are able to successfully render and use the video content type through the Block content type."/> |
| 1291 | + <severity value="CRITICAL"/> |
| 1292 | + <testCaseId value=" C-14832"/> |
| 1293 | + <useCaseId value="MC-13769"/> |
| 1294 | + <group value="pagebuilder"/> |
| 1295 | + <group value="pagebuilder-block"/> |
| 1296 | + <group value="pagebuilder-block-content"/> |
| 1297 | + <group value="pagebuilder-video"/> |
| 1298 | + </annotations> |
| 1299 | + <before> |
| 1300 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 1301 | + <createData entity="_emptyCmsPage" stepKey="createCMSPage"/> |
| 1302 | + <createData entity="_emptyCmsBlock" stepKey="createCMSBlock"/> |
| 1303 | + <actionGroup ref="navigateToCreatedCMSBlockPage" stepKey="navigateToCreatedCMSBlockPage1"> |
| 1304 | + <argument name="CMSBlockPage" value="$$createCMSBlock$$"/> |
| 1305 | + </actionGroup> |
| 1306 | + </before> |
| 1307 | + <after> |
| 1308 | + <deleteData createDataKey="createCMSBlock" stepKey="deleteCMSBlock"/> |
| 1309 | + <deleteData createDataKey="createCMSPage" stepKey="deleteCMSPage"/> |
| 1310 | + <actionGroup ref="logout" stepKey="logout"/> |
| 1311 | + </after> |
| 1312 | + <!-- Add Video --> |
| 1313 | + <comment userInput="Add Video" stepKey="commentAddVideo"/> |
| 1314 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup"> |
| 1315 | + <argument name="group" value="PageBuilderVideoContentType"/> |
| 1316 | + </actionGroup> |
| 1317 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragVideoIntoStage"> |
| 1318 | + <argument name="contentType" value="PageBuilderVideoContentType"/> |
| 1319 | + </actionGroup> |
| 1320 | + <!-- Edit Video --> |
| 1321 | + <comment userInput="Edit Video" stepKey="commentEditVideo"/> |
| 1322 | + <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuVideo"> |
| 1323 | + <argument name="contentType" value="PageBuilderVideoContentType"/> |
| 1324 | + </actionGroup> |
| 1325 | + <actionGroup ref="fillSlideOutPanelFieldGeneral" stepKey="enterVideoUrlProperty"> |
| 1326 | + <argument name="property" value="PageBuilderVideoUrl_YouTube"/> |
| 1327 | + </actionGroup> |
| 1328 | + <actionGroup ref="fillSlideOutPanelFieldGeneral" stepKey="enterVideoWidthProperty"> |
| 1329 | + <argument name="property" value="PageBuilderVideoWidth_500"/> |
| 1330 | + </actionGroup> |
| 1331 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettingsVideo"/> |
| 1332 | + <actionGroup ref="saveCMSBlock" stepKey="saveCMSBlock"/> |
| 1333 | + <!-- Validate CMS Block Stage --> |
| 1334 | + <comment userInput="Validate CMS Block Stage" stepKey="commentValidateCMSBlockStage"/> |
| 1335 | + <actionGroup ref="validateVideo" stepKey="validateBlockStage"> |
| 1336 | + <argument name="page" value="VideoOnStage"/> |
| 1337 | + <argument name="url" value="PageBuilderVideoUrl_YouTube"/> |
| 1338 | + <argument name="width" value="PageBuilderVideoWidth_500"/> |
| 1339 | + </actionGroup> |
| 1340 | + <!-- Add Block to CMS Page --> |
| 1341 | + <comment userInput="Add Block to CMS Page" stepKey="commentAddBlockToCMSPage"/> |
| 1342 | + <actionGroup ref="navigateToCreatedCMSPage" stepKey="navigateToCreatedCMSPage"> |
| 1343 | + <argument name="CMSPage" value="$$createCMSPage$$"/> |
| 1344 | + </actionGroup> |
| 1345 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandGroupAddContent"> |
| 1346 | + <argument name="group" value="PageBuilderBlockContentType"/> |
| 1347 | + </actionGroup> |
| 1348 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragBlockIntoStage"> |
| 1349 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 1350 | + </actionGroup> |
| 1351 | + <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditAfterDropBlock"> |
| 1352 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 1353 | + </actionGroup> |
| 1354 | + <actionGroup ref="searchBlockInGrid" stepKey="searchBlockInGrid"> |
| 1355 | + <argument name="block" value="$$createCMSBlock$$"/> |
| 1356 | + </actionGroup> |
| 1357 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettingsBlock"/> |
| 1358 | + <!-- Validate CMS Page Stage --> |
| 1359 | + <comment userInput="Validate CMS Page Stage" stepKey="commentValidateCMSPageStage"/> |
| 1360 | + <actionGroup ref="validateVideo" stepKey="validatePageStage"> |
| 1361 | + <argument name="page" value="VideoOnStorefront"/> |
| 1362 | + <argument name="url" value="PageBuilderVideoUrl_YouTube"/> |
| 1363 | + <argument name="width" value="PageBuilderVideoWidth_500"/> |
| 1364 | + </actionGroup> |
| 1365 | + <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/> |
| 1366 | + <!-- Validate CMS Page Storefront --> |
| 1367 | + <comment userInput="Validate CMS Page Storefront" stepKey="commentValidateCMSPageStorefront"/> |
| 1368 | + <actionGroup ref="navigateToStorefrontForCreatedPage" stepKey="navigateToStoreFront"> |
| 1369 | + <argument name="page" value="$$createCMSPage.identifier$$"/> |
| 1370 | + </actionGroup> |
| 1371 | + <actionGroup ref="validateVideo" stepKey="validateStorefront"> |
| 1372 | + <argument name="page" value="VideoOnStorefront"/> |
| 1373 | + <argument name="url" value="PageBuilderVideoUrl_YouTube"/> |
| 1374 | + <argument name="width" value="PageBuilderVideoWidth_500"/> |
| 1375 | + </actionGroup> |
| 1376 | + </test> |
| 1377 | + <test name="BlockRenderBlockThroughBlockContentType"> |
| 1378 | + <annotations> |
| 1379 | + <features value="PageBuilder"/> |
| 1380 | + <stories value="Block Content"/> |
| 1381 | + <title value="Render Block Through Block Content Type"/> |
| 1382 | + <description value="Verify that users are able to successfully render and use the block content type through the Block content type."/> |
| 1383 | + <severity value="CRITICAL"/> |
| 1384 | + <testCaseId value="MC-14834"/> |
| 1385 | + <useCaseId value="MC-13769"/> |
| 1386 | + <group value="pagebuilder"/> |
| 1387 | + <group value="pagebuilder-block"/> |
| 1388 | + <group value="pagebuilder-block-content"/> |
| 1389 | + </annotations> |
| 1390 | + <before> |
| 1391 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 1392 | + <createData entity="_emptyCmsPage" stepKey="createCMSPage"/> |
| 1393 | + <createData entity="_emptyCmsBlock" stepKey="createCMSBlock"/> |
| 1394 | + <createData entity="_defaultBlock" stepKey="createPreReqBlock" /> |
| 1395 | + <actionGroup ref="navigateToCreatedCMSBlockPage" stepKey="navigateToCreatedCMSBlockPage1"> |
| 1396 | + <argument name="CMSBlockPage" value="$$createCMSBlock$$"/> |
| 1397 | + </actionGroup> |
| 1398 | + </before> |
| 1399 | + <after> |
| 1400 | + <deleteData createDataKey="createPreReqBlock" stepKey="deletePreReqBlock" /> |
| 1401 | + <deleteData createDataKey="createCMSBlock" stepKey="deleteCMSBlock"/> |
| 1402 | + <deleteData createDataKey="createCMSPage" stepKey="deleteCMSPage"/> |
| 1403 | + <actionGroup ref="logout" stepKey="logout"/> |
| 1404 | + </after> |
| 1405 | + <!-- Add Block --> |
| 1406 | + <comment userInput="Add Block" stepKey="commentAddBlock"/> |
| 1407 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup"> |
| 1408 | + <argument name="group" value="PageBuilderBlockContentType"/> |
| 1409 | + </actionGroup> |
| 1410 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragBlockIntoStage"> |
| 1411 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 1412 | + </actionGroup> |
| 1413 | + <!-- Edit Block --> |
| 1414 | + <comment userInput="Edit Block" stepKey="commentEditBlock"/> |
| 1415 | + <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuBlock"> |
| 1416 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 1417 | + </actionGroup> |
| 1418 | + <actionGroup ref="searchBlockInGrid" stepKey="searchBlockInGrid"> |
| 1419 | + <argument name="block" value="$$createPreReqBlock$$"/> |
| 1420 | + </actionGroup> |
| 1421 | + <waitForElementVisible selector="{{BlockOnForm.title('$$createPreReqBlock.title$$')}}" stepKey="waitToSeeBlockTitle"/> |
| 1422 | + <seeElement selector="{{BlockOnForm.title('$$createPreReqBlock.title$$')}}" stepKey="seeBlockTitleOnForm"/> |
| 1423 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettingsBlock"/> |
| 1424 | + <actionGroup ref="saveCMSBlock" stepKey="saveCMSBlock"/> |
| 1425 | + <!-- Validate CMS Block Stage --> |
| 1426 | + <comment userInput="Validate CMS Block Stage" stepKey="commentValidateCMSBlockStage"/> |
| 1427 | + <actionGroup ref="verifyBlockOnStage" stepKey="verifyBlockOnBlockStage"> |
| 1428 | + <argument name="block" value="$$createPreReqBlock$$"/> |
| 1429 | + <argument name="index" value="1"/> |
| 1430 | + </actionGroup> |
| 1431 | + <!-- Add Block to CMS Page --> |
| 1432 | + <comment userInput="Add Block to CMS Page" stepKey="commentAddBlockToCMSPage"/> |
| 1433 | + <actionGroup ref="navigateToCreatedCMSPage" stepKey="navigateToCreatedCMSPage"> |
| 1434 | + <argument name="CMSPage" value="$$createCMSPage$$"/> |
| 1435 | + </actionGroup> |
| 1436 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandGroupAddContent"> |
| 1437 | + <argument name="group" value="PageBuilderBlockContentType"/> |
| 1438 | + </actionGroup> |
| 1439 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragBlockIntoPageStage"> |
| 1440 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 1441 | + </actionGroup> |
| 1442 | + <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditAfterDropBlock"> |
| 1443 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 1444 | + </actionGroup> |
| 1445 | + <actionGroup ref="searchBlockInGrid" stepKey="searchBlockInPageGrid"> |
| 1446 | + <argument name="block" value="$$createCMSBlock$$"/> |
| 1447 | + </actionGroup> |
| 1448 | + <actionGroup ref="saveEditPanelSettings" stepKey="savePageEditPanelSettingsBlock"/> |
| 1449 | + <!-- Validate CMS Page Stage --> |
| 1450 | + <comment userInput="Validate CMS Page Stage" stepKey="commentValidateCMSPageStage"/> |
| 1451 | + <see userInput="$$createPreReqBlock.content$$" stepKey="seeBlockContentOnPageStage"/> |
| 1452 | + <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/> |
| 1453 | + <!-- Validate CMS Page Storefront --> |
| 1454 | + <comment userInput="Validate CMS Page Storefront" stepKey="commentValidateCMSPageStorefront"/> |
| 1455 | + <actionGroup ref="navigateToStorefrontForCreatedPage" stepKey="navigateToStoreFront"> |
| 1456 | + <argument name="page" value="$$createCMSPage.identifier$$"/> |
| 1457 | + </actionGroup> |
| 1458 | + <see userInput="$$createPreReqBlock.content$$" stepKey="seeBlockContentOnStoreFront"/> |
| 1459 | + </test> |
1285 | 1460 | </tests>
|
0 commit comments