|
1280 | 1280 | <features value="PageBuilder"/>
|
1281 | 1281 | <stories value="Always Render Magento directives on Magento Storefront for Product"/>
|
1282 | 1282 | <title value="Always Render Magento directives on Magento Storefront for Product"/>
|
1283 |
| - <description value="Admin are able to add CMS Page link and image into PageBuilder content and see it Product Page"/> |
| 1283 | + <description value="Admin are able to add CMS Page link, image, variable, widget into PageBuilder content and see it Product Page"/> |
1284 | 1284 | <severity value="CRITICAL"/>
|
1285 | 1285 | <useCaseId value="MC-1364"/>
|
| 1286 | + <testCaseId value="MC-3174 "/> |
1286 | 1287 | <group value="pagebuilder"/>
|
1287 | 1288 | <group value="pagebuilder-common"/>
|
1288 | 1289 | <group value="pagebuilder-urlInput"/>
|
|
1305 | 1306 | <waitForPageLoad stepKey="waitForAdminLoginPageLoad"/>
|
1306 | 1307 | </after>
|
1307 | 1308 | <!--Go to Product Page-->
|
| 1309 | + <comment userInput="Go to Product Page" stepKey="goToProductPage"/> |
1308 | 1310 | <amOnPage url="{{AdminProductEditPage.url($$createPreReqProduct.id$$)}}" stepKey="goToEditPage"/>
|
1309 | 1311 | <waitForPageLoad stepKey="waitForProductPageBeLoaded"/>
|
1310 | 1312 | <click selector="{{AdminProductFormSection.contentTab}}" stepKey="clickContentTab"/>
|
|
1314 | 1316 | <!--See PageBuilder fullsize-->
|
1315 | 1317 | <waitForElementVisible selector="{{PageBuilderPanel.generalGroup}}" stepKey="waiForPageBuilderVisible" />
|
1316 | 1318 | <seeElement selector="{{PageBuilderStage.stageWrapperFullScreen}}" stepKey="seePageBuilderFullSizeScreen" />
|
| 1319 | + <!--Add button into PageBuilder--> |
| 1320 | + <comment userInput="Add button into PageBuilder" stepKey="addButtonIntoPageBuilder"/> |
1317 | 1321 | <dragAndDrop selector1="{{PageBuilderPanel.draggableContentTypeInPanel(PageBuilderButtonsContentType.name)}}" selector2="{{PageBuilderStage.dropAreaInStage}}" stepKey="dropContentTypeIntoStage"/>
|
1318 | 1322 | <actionGroup ref="openPageBuilderEditPanelSmallByIndex" stepKey="openEditMenuOnStage1">
|
1319 | 1323 | <argument name="section" value="ButtonItemOnStage"/>
|
|
1324 | 1328 | <argument name="searchResult" value="$$createCMSPageA.title$$"/>
|
1325 | 1329 | </actionGroup>
|
1326 | 1330 | <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings1"/>
|
| 1331 | + <!--Add image into PageBuilder--> |
| 1332 | + <comment userInput="Add image into PageBuilder" stepKey="addImageIntoPageBuilder"/> |
1327 | 1333 | <click selector="{{PageBuilderPanel.mediaGroup}}" stepKey="clickMediaGroup"/>
|
1328 | 1334 | <actionGroup ref="dragContentTypeToStage" stepKey="dragImageIntoStage">
|
1329 | 1335 | <argument name="contentType" value="PageBuilderImageContentType"/>
|
|
1332 | 1338 | <argument name="property" value="PageBuilderImageProperty_StageJPG"/>
|
1333 | 1339 | </actionGroup>
|
1334 | 1340 | <waitForElementVisible selector="{{ImageOnStage.imageSourceByIndex('1', PageBuilderImageProperty_StageJPG.fileName)}}" stepKey="seeImage1SourceOnStage"/>
|
1335 |
| - |
1336 | 1341 | <actionGroup ref="dragContentTypeToStage" stepKey="dragButtonsOntoStage">
|
1337 | 1342 | <argument name="contentType" value="PageBuilderTextContentType"/>
|
1338 | 1343 | </actionGroup>
|
1339 | 1344 | <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage">
|
1340 | 1345 | <argument name="contentType" value="PageBuilderTextContentType"/>
|
1341 | 1346 | </actionGroup>
|
| 1347 | + <!--Add variable into Text content--> |
| 1348 | + <comment userInput="Add variable into Text content" stepKey="addVariableIntoTextContent"/> |
1342 | 1349 | <actionGroup ref="addVariableToTinyMCE" stepKey="addVariableToTinyMCE">
|
1343 | 1350 | <argument name="variable" value="TinyMCEVariableCountry"/>
|
1344 | 1351 | </actionGroup>
|
| 1352 | + <!--Add variable into Text content--> |
| 1353 | + <comment userInput="Add widget into Text content" stepKey="addWidgetIntoTextContent"/> |
1345 | 1354 | <actionGroup ref="addPageLinkWidgetToTinyMCE" stepKey="addPageLinkWidgetToTinyMCE">
|
1346 | 1355 | <argument name="widget" value="TinyMCEWidgetCMSPageLink"/>
|
1347 | 1356 | <argument name="page" value="$$createCMSPageA.identifier$$"/>
|
|
1353 | 1362 | <comment userInput="Verify directives on store front" stepKey="commentVerifyDirectivesOnSlideout"/>
|
1354 | 1363 | <amOnPage url="$$createPreReqProduct.name$$.html" stepKey="navigateToProductPage"/>
|
1355 | 1364 | <!--Go to storefront to verify Product Link-->
|
| 1365 | + <comment userInput="Verify directive link on Storefront" stepKey="verifyDirectiveLinkOnStorefront"/> |
1356 | 1366 | <waitForPageLoad stepKey="waitForPageLoad5"/>
|
1357 | 1367 | <scrollTo selector="{{StorefrontProductInfoDetailsSection.detailsTab}}" stepKey="scrollToDetailsTab"/>
|
1358 | 1368 | <see userInput="US" stepKey="verifyCountryVariableName" />
|
|
1368 | 1378 | <features value="PageBuilder"/>
|
1369 | 1379 | <stories value="Always Render Magento directives on Magento Storefront for Category"/>
|
1370 | 1380 | <title value="Always Render Magento directives on Magento Storefront for Category"/>
|
1371 |
| - <description value="Admin are able to add CMS Page link and image into PageBuilder content and see it Category Page"/> |
| 1381 | + <description value="Admin are able to add CMS Page link, image, variable, widget into PageBuilder content and see it Category Page"/> |
1372 | 1382 | <severity value="CRITICAL"/>
|
| 1383 | + <testCaseId value="MMC-3173"/> |
1373 | 1384 | <useCaseId value="MC-1364"/>
|
1374 | 1385 | <group value="pagebuilder"/>
|
1375 | 1386 | <group value="pagebuilder-common"/>
|
|
1389 | 1400 | <waitForPageLoad stepKey="waitForAdminLoginPageLoad"/>
|
1390 | 1401 | </after>
|
1391 | 1402 | <!--Go to Category Page-->
|
| 1403 | + <comment userInput="Go to Category Page" stepKey="goToCategoryPage"/> |
1392 | 1404 | <amOnPage url="{{AdminCategoryEditPage.url($$createPreReqCategory.id$$)}}" stepKey="goToCategoryEditPage"/>
|
1393 | 1405 | <waitForPageLoad stepKey="waitForProductPageBeLoaded"/>
|
1394 | 1406 | <click selector="{{AdminCategoryContentSection.sectionHeader}}" stepKey="clickContentTab"/>
|
|
1398 | 1410 | <!--See PageBuilder fullsize-->
|
1399 | 1411 | <waitForElementVisible selector="{{PageBuilderPanel.generalGroup}}" stepKey="waiForPageBuilderVisible" />
|
1400 | 1412 | <seeElement selector="{{PageBuilderStage.stageWrapperFullScreen}}" stepKey="seePageBuilderFullSizeScreen" />
|
| 1413 | + <!--Add button to PageBuilder--> |
| 1414 | + <comment userInput="Add button to PageBuilder" stepKey="addButtonToPageBuilder"/> |
1401 | 1415 | <dragAndDrop selector1="{{PageBuilderPanel.draggableContentTypeInPanel(PageBuilderButtonsContentType.name)}}" selector2="{{PageBuilderStage.dropAreaInStage}}" stepKey="dropContentTypeIntoStage"/>
|
1402 | 1416 | <actionGroup ref="openPageBuilderEditPanelSmallByIndex" stepKey="openEditMenuOnStage1">
|
1403 | 1417 | <argument name="section" value="ButtonItemOnStage"/>
|
|
1408 | 1422 | <argument name="searchResult" value="$$createCMSPageA.title$$"/>
|
1409 | 1423 | </actionGroup>
|
1410 | 1424 | <actionGroup ref="saveEditPanelSettingsFullScreen" stepKey="saveEditPanelSettings1"/>
|
| 1425 | + <!--Add image to PageBuilder--> |
| 1426 | + <comment userInput="Add image to PageBuilder" stepKey="addImageToPageBuilder"/> |
1411 | 1427 | <click selector="{{PageBuilderPanel.mediaGroup}}" stepKey="clickMediaGroup"/>
|
1412 | 1428 | <actionGroup ref="dragContentTypeToStage" stepKey="dragImageIntoStage">
|
1413 | 1429 | <argument name="contentType" value="PageBuilderImageContentType"/>
|
|
1422 | 1438 | <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage">
|
1423 | 1439 | <argument name="contentType" value="PageBuilderTextContentType"/>
|
1424 | 1440 | </actionGroup>
|
| 1441 | + <!--Add variable to PageBuilder--> |
| 1442 | + <comment userInput="Add variable to PageBuilder" stepKey="addVariableToPageBuilder"/> |
1425 | 1443 | <actionGroup ref="addVariableToTinyMCE" stepKey="addVariableToTinyMCE">
|
1426 | 1444 | <argument name="variable" value="TinyMCEVariableCountry"/>
|
1427 | 1445 | </actionGroup>
|
| 1446 | + <!--Add widget to PageBuilder--> |
| 1447 | + <comment userInput="Add widget to PageBuilder" stepKey="addWidgetToPageBuilder"/> |
1428 | 1448 | <actionGroup ref="addPageLinkWidgetToTinyMCE" stepKey="addPageLinkWidgetToTinyMCE">
|
1429 | 1449 | <argument name="widget" value="TinyMCEWidgetCMSPageLink"/>
|
1430 | 1450 | <argument name="page" value="$$createCMSPageA.identifier$$"/>
|
|
1436 | 1456 | <click selector="{{AdminCategoryMainActionsSection.SaveButton}}" stepKey="saveCategory"/>
|
1437 | 1457 | <waitForPageLoad stepKey="waitForPageLoad2" />
|
1438 | 1458 | <comment userInput="Verify directives on category store front" stepKey="commentVerifyDirectivesOnStorefront"/>
|
| 1459 | + <!--Go to storefront to verify Category Link--> |
| 1460 | + <comment userInput="Verify directive link on Storefront" stepKey="verifyDirectiveLinkOnStorefront"/> |
1439 | 1461 | <amOnPage url="$$createPreReqCategory.name$$.html" stepKey="navigateToProductPage"/>
|
1440 | 1462 | <waitForPageLoad stepKey="waitForPageLoad3" />
|
1441 | 1463 | <see userInput="US" stepKey="verifyCountryVariableName" />
|
|
0 commit comments