Skip to content

Commit 4877c82

Browse files
committed
MC-1364: Automate MFTF for MC-1364
1 parent a007282 commit 4877c82

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

app/code/Magento/PageBuilder/Test/Mftf/Test/AdminPageBuilderCommonTest.xml

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,9 +1280,10 @@
12801280
<features value="PageBuilder"/>
12811281
<stories value="Always Render Magento directives on Magento Storefront for Product"/>
12821282
<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"/>
12841284
<severity value="CRITICAL"/>
12851285
<useCaseId value="MC-1364"/>
1286+
<testCaseId value="MC-3174 "/>
12861287
<group value="pagebuilder"/>
12871288
<group value="pagebuilder-common"/>
12881289
<group value="pagebuilder-urlInput"/>
@@ -1305,6 +1306,7 @@
13051306
<waitForPageLoad stepKey="waitForAdminLoginPageLoad"/>
13061307
</after>
13071308
<!--Go to Product Page-->
1309+
<comment userInput="Go to Product Page" stepKey="goToProductPage"/>
13081310
<amOnPage url="{{AdminProductEditPage.url($$createPreReqProduct.id$$)}}" stepKey="goToEditPage"/>
13091311
<waitForPageLoad stepKey="waitForProductPageBeLoaded"/>
13101312
<click selector="{{AdminProductFormSection.contentTab}}" stepKey="clickContentTab"/>
@@ -1314,6 +1316,8 @@
13141316
<!--See PageBuilder fullsize-->
13151317
<waitForElementVisible selector="{{PageBuilderPanel.generalGroup}}" stepKey="waiForPageBuilderVisible" />
13161318
<seeElement selector="{{PageBuilderStage.stageWrapperFullScreen}}" stepKey="seePageBuilderFullSizeScreen" />
1319+
<!--Add button into PageBuilder-->
1320+
<comment userInput="Add button into PageBuilder" stepKey="addButtonIntoPageBuilder"/>
13171321
<dragAndDrop selector1="{{PageBuilderPanel.draggableContentTypeInPanel(PageBuilderButtonsContentType.name)}}" selector2="{{PageBuilderStage.dropAreaInStage}}" stepKey="dropContentTypeIntoStage"/>
13181322
<actionGroup ref="openPageBuilderEditPanelSmallByIndex" stepKey="openEditMenuOnStage1">
13191323
<argument name="section" value="ButtonItemOnStage"/>
@@ -1324,6 +1328,8 @@
13241328
<argument name="searchResult" value="$$createCMSPageA.title$$"/>
13251329
</actionGroup>
13261330
<actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings1"/>
1331+
<!--Add image into PageBuilder-->
1332+
<comment userInput="Add image into PageBuilder" stepKey="addImageIntoPageBuilder"/>
13271333
<click selector="{{PageBuilderPanel.mediaGroup}}" stepKey="clickMediaGroup"/>
13281334
<actionGroup ref="dragContentTypeToStage" stepKey="dragImageIntoStage">
13291335
<argument name="contentType" value="PageBuilderImageContentType"/>
@@ -1332,16 +1338,19 @@
13321338
<argument name="property" value="PageBuilderImageProperty_StageJPG"/>
13331339
</actionGroup>
13341340
<waitForElementVisible selector="{{ImageOnStage.imageSourceByIndex('1', PageBuilderImageProperty_StageJPG.fileName)}}" stepKey="seeImage1SourceOnStage"/>
1335-
13361341
<actionGroup ref="dragContentTypeToStage" stepKey="dragButtonsOntoStage">
13371342
<argument name="contentType" value="PageBuilderTextContentType"/>
13381343
</actionGroup>
13391344
<actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage">
13401345
<argument name="contentType" value="PageBuilderTextContentType"/>
13411346
</actionGroup>
1347+
<!--Add variable into Text content-->
1348+
<comment userInput="Add variable into Text content" stepKey="addVariableIntoTextContent"/>
13421349
<actionGroup ref="addVariableToTinyMCE" stepKey="addVariableToTinyMCE">
13431350
<argument name="variable" value="TinyMCEVariableCountry"/>
13441351
</actionGroup>
1352+
<!--Add variable into Text content-->
1353+
<comment userInput="Add widget into Text content" stepKey="addWidgetIntoTextContent"/>
13451354
<actionGroup ref="addPageLinkWidgetToTinyMCE" stepKey="addPageLinkWidgetToTinyMCE">
13461355
<argument name="widget" value="TinyMCEWidgetCMSPageLink"/>
13471356
<argument name="page" value="$$createCMSPageA.identifier$$"/>
@@ -1353,6 +1362,7 @@
13531362
<comment userInput="Verify directives on store front" stepKey="commentVerifyDirectivesOnSlideout"/>
13541363
<amOnPage url="$$createPreReqProduct.name$$.html" stepKey="navigateToProductPage"/>
13551364
<!--Go to storefront to verify Product Link-->
1365+
<comment userInput="Verify directive link on Storefront" stepKey="verifyDirectiveLinkOnStorefront"/>
13561366
<waitForPageLoad stepKey="waitForPageLoad5"/>
13571367
<scrollTo selector="{{StorefrontProductInfoDetailsSection.detailsTab}}" stepKey="scrollToDetailsTab"/>
13581368
<see userInput="US" stepKey="verifyCountryVariableName" />
@@ -1368,8 +1378,9 @@
13681378
<features value="PageBuilder"/>
13691379
<stories value="Always Render Magento directives on Magento Storefront for Category"/>
13701380
<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"/>
13721382
<severity value="CRITICAL"/>
1383+
<testCaseId value="MMC-3173"/>
13731384
<useCaseId value="MC-1364"/>
13741385
<group value="pagebuilder"/>
13751386
<group value="pagebuilder-common"/>
@@ -1389,6 +1400,7 @@
13891400
<waitForPageLoad stepKey="waitForAdminLoginPageLoad"/>
13901401
</after>
13911402
<!--Go to Category Page-->
1403+
<comment userInput="Go to Category Page" stepKey="goToCategoryPage"/>
13921404
<amOnPage url="{{AdminCategoryEditPage.url($$createPreReqCategory.id$$)}}" stepKey="goToCategoryEditPage"/>
13931405
<waitForPageLoad stepKey="waitForProductPageBeLoaded"/>
13941406
<click selector="{{AdminCategoryContentSection.sectionHeader}}" stepKey="clickContentTab"/>
@@ -1398,6 +1410,8 @@
13981410
<!--See PageBuilder fullsize-->
13991411
<waitForElementVisible selector="{{PageBuilderPanel.generalGroup}}" stepKey="waiForPageBuilderVisible" />
14001412
<seeElement selector="{{PageBuilderStage.stageWrapperFullScreen}}" stepKey="seePageBuilderFullSizeScreen" />
1413+
<!--Add button to PageBuilder-->
1414+
<comment userInput="Add button to PageBuilder" stepKey="addButtonToPageBuilder"/>
14011415
<dragAndDrop selector1="{{PageBuilderPanel.draggableContentTypeInPanel(PageBuilderButtonsContentType.name)}}" selector2="{{PageBuilderStage.dropAreaInStage}}" stepKey="dropContentTypeIntoStage"/>
14021416
<actionGroup ref="openPageBuilderEditPanelSmallByIndex" stepKey="openEditMenuOnStage1">
14031417
<argument name="section" value="ButtonItemOnStage"/>
@@ -1408,6 +1422,8 @@
14081422
<argument name="searchResult" value="$$createCMSPageA.title$$"/>
14091423
</actionGroup>
14101424
<actionGroup ref="saveEditPanelSettingsFullScreen" stepKey="saveEditPanelSettings1"/>
1425+
<!--Add image to PageBuilder-->
1426+
<comment userInput="Add image to PageBuilder" stepKey="addImageToPageBuilder"/>
14111427
<click selector="{{PageBuilderPanel.mediaGroup}}" stepKey="clickMediaGroup"/>
14121428
<actionGroup ref="dragContentTypeToStage" stepKey="dragImageIntoStage">
14131429
<argument name="contentType" value="PageBuilderImageContentType"/>
@@ -1422,9 +1438,13 @@
14221438
<actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage">
14231439
<argument name="contentType" value="PageBuilderTextContentType"/>
14241440
</actionGroup>
1441+
<!--Add variable to PageBuilder-->
1442+
<comment userInput="Add variable to PageBuilder" stepKey="addVariableToPageBuilder"/>
14251443
<actionGroup ref="addVariableToTinyMCE" stepKey="addVariableToTinyMCE">
14261444
<argument name="variable" value="TinyMCEVariableCountry"/>
14271445
</actionGroup>
1446+
<!--Add widget to PageBuilder-->
1447+
<comment userInput="Add widget to PageBuilder" stepKey="addWidgetToPageBuilder"/>
14281448
<actionGroup ref="addPageLinkWidgetToTinyMCE" stepKey="addPageLinkWidgetToTinyMCE">
14291449
<argument name="widget" value="TinyMCEWidgetCMSPageLink"/>
14301450
<argument name="page" value="$$createCMSPageA.identifier$$"/>
@@ -1436,6 +1456,8 @@
14361456
<click selector="{{AdminCategoryMainActionsSection.SaveButton}}" stepKey="saveCategory"/>
14371457
<waitForPageLoad stepKey="waitForPageLoad2" />
14381458
<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"/>
14391461
<amOnPage url="$$createPreReqCategory.name$$.html" stepKey="navigateToProductPage"/>
14401462
<waitForPageLoad stepKey="waitForPageLoad3" />
14411463
<see userInput="US" stepKey="verifyCountryVariableName" />

0 commit comments

Comments
 (0)