Skip to content

Commit 176dbc4

Browse files
committed
MC-13769: Add Missing P0-P1 MFTF Tests For PageBuilder On CMS Block - Render Content Through Block
- Fixing block tests
1 parent 12d8589 commit 176dbc4

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

app/code/Magento/PageBuilder/Test/Mftf/Section/PageBuilderBlockSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
<element name="hr" type="button" selector="(//div[@data-role='block'])[{{arg1}}]/hr" parameterized="true"/>
5353
<element name="empty" type="text" selector="//div[@data-role='block'][{{arg1}}][not(*)]" parameterized="true"/>
5454
<element name="textContent" type="text" selector="(//div[@data-role='block'])[{{arg1}}]//div[contains(text(),'{{arg2}}')]" parameterized="true"/>
55+
<element name="content" type="text" selector="(//div[contains(@class,'pagebuilder-block')])[{{arg1}}]//div[contains(@class,'block-static-block')]" parameterized="true"/>
5556
<!-- Advanced Configuration -->
5657
<element name="alignment" type="text" selector="(//div[@data-role='block'])[{{arg1}}][contains(@style,'text-align: {{arg2}};')]" parameterized="true"/>
5758
<element name="noAlignment" type="text" selector="(//div[@data-role='block'])[{{arg1}}][not(contains(@style,'text-align:'))]" parameterized="true"/>

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,7 +1289,7 @@
12891289
<title value="Render Video Through Block Content Type"/>
12901290
<description value="Verify that users are able to successfully render and use the video content type through the Block content type."/>
12911291
<severity value="CRITICAL"/>
1292-
<testCaseId value=" C-14832"/>
1292+
<testCaseId value="MC-14832"/>
12931293
<useCaseId value="MC-13769"/>
12941294
<group value="pagebuilder"/>
12951295
<group value="pagebuilder-block"/>
@@ -1418,8 +1418,6 @@
14181418
<actionGroup ref="searchBlockInGrid" stepKey="searchBlockInGrid">
14191419
<argument name="block" value="$$createPreReqBlock$$"/>
14201420
</actionGroup>
1421-
<waitForElementVisible selector="{{BlockOnForm.title('$$createPreReqBlock.title$$')}}" stepKey="waitToSeeBlockTitle"/>
1422-
<seeElement selector="{{BlockOnForm.title('$$createPreReqBlock.title$$')}}" stepKey="seeBlockTitleOnForm"/>
14231421
<actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettingsBlock"/>
14241422
<actionGroup ref="saveCMSBlock" stepKey="saveCMSBlock"/>
14251423
<!-- Validate CMS Block Stage -->
@@ -1448,13 +1446,13 @@
14481446
<actionGroup ref="saveEditPanelSettings" stepKey="savePageEditPanelSettingsBlock"/>
14491447
<!-- Validate CMS Page Stage -->
14501448
<comment userInput="Validate CMS Page Stage" stepKey="commentValidateCMSPageStage"/>
1451-
<see userInput="$$createPreReqBlock.content$$" stepKey="seeBlockContentOnPageStage"/>
1449+
<see selector="{{BlockOnStage.content('1')}}" userInput="$$createPreReqBlock.content$$" stepKey="seeBlockContentOnPageStage"/>
14521450
<actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/>
14531451
<!-- Validate CMS Page Storefront -->
14541452
<comment userInput="Validate CMS Page Storefront" stepKey="commentValidateCMSPageStorefront"/>
14551453
<actionGroup ref="navigateToStorefrontForCreatedPage" stepKey="navigateToStoreFront">
14561454
<argument name="page" value="$$createCMSPage.identifier$$"/>
14571455
</actionGroup>
1458-
<see userInput="$$createPreReqBlock.content$$" stepKey="seeBlockContentOnStoreFront"/>
1456+
<see selector="{{BlockOnStorefront.base('2')}}{{BlockOnStorefront.ancestor}}" userInput="$$createPreReqBlock.content$$" stepKey="seeBlockContentOnStoreFront"/>
14591457
</test>
14601458
</tests>

0 commit comments

Comments
 (0)