Skip to content

Commit e9a086d

Browse files
committed
MC-3328: Add Missing P0-P1 MFTF Tests For PageBuilder On CMS Block
- add new test for BlockVerifyCanDuplicateContentTypesFromOnHoverOptionMenus extends from existing
1 parent 189fc0a commit e9a086d

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed

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

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2039,4 +2039,70 @@
20392039
<comment userInput="---merging to remove step---" stepKey="scrollToProductDescription"/>
20402040
<seeElement selector="{{RowOnStorefront.backgroundColor('2', PageBuilderBackgroundColor_Hex_Grey.rgb)}}" stepKey="seeBackgroundColorRowStorefront"/>
20412041
</test>
2042+
<test name="BlockVerifyCanDuplicateContentTypesFromOnHoverOptionMenus" extends="PageBuilderProductVerifyCanDuplicateContentTypesFromOnHoverOptionMenus">
2043+
<annotations>
2044+
<features value="PageBuilder"/>
2045+
<stories value="CMS Block"/>
2046+
<title value="Verify that user can duplicate content types from on-hover option menus in CMS Block"/>
2047+
<description value="This test is intended to ensure that users can duplicate content types from the on-hover option menus within the PageBuilder stage for CMS Block."/>
2048+
<severity value="CRITICAL"/>
2049+
<useCaseId value="MC-3328"/>
2050+
<testCaseId value="MC-13752"/>
2051+
<group value="pagebuilder"/>
2052+
<group value="pagebuilder-row"/>
2053+
<group value="pagebuilder-duplicate"/>
2054+
<group value="pagebuilder-cms-block"/>
2055+
</annotations>
2056+
<before>
2057+
<comment userInput="---merging to remove step---" stepKey="createPreReqCategory"/>
2058+
<comment userInput="---merging to remove step---" stepKey="createProduct"/>
2059+
<createData entity="_defaultBlock" stepKey="createPreReqBlock" after="loginAsAdmin"/>
2060+
<actionGroup ref="navigateToCreatedCMSBlockPage" stepKey="navigateToCreatedProductEditPage">
2061+
<argument name="CMSBlockPage" value="$$createPreReqBlock$$" />
2062+
</actionGroup>
2063+
<comment userInput="---merging to remove step---" stepKey="expandAdminProductSection"/>
2064+
<comment userInput="---merging to remove step---" stepKey="openPageBuilderForDescription"/>
2065+
</before>
2066+
<after>
2067+
<deleteData createDataKey="createPreReqBlock" stepKey="deleteCreatedProduct"/>
2068+
<comment userInput="---merging to remove step---" stepKey="deleteCreatedCategory"/>
2069+
<comment userInput="---merging to remove step---" stepKey="NavigateToAndResetProductGridToDefaultView"/>
2070+
</after>
2071+
<actionGroup ref="removeContentTypeFromStage" stepKey="removeContentTypeFromStage" after="commentEditRow">
2072+
<argument name="contentType" value="PageBuilderHtmlContentType"/>
2073+
</actionGroup>
2074+
<comment userInput="---merging to remove step---" stepKey="exitPageBuilderFullScreen"/>
2075+
<click selector="{{CmsNewBlockBlockActionsSection.savePage}}" stepKey="saveProduct"/>
2076+
<comment userInput="---merging to remove step---" stepKey="expandAdminProductSection"/>
2077+
<comment userInput="---merging to remove step---" stepKey="openPageBuilderForDescription"/>
2078+
<!-- Go to CMS Page and choose Block -->
2079+
<comment userInput="Go to CMS Page and choose Block" stepKey="commentGoToCMSPage" after="seeBackgroundColorRow2StageAfterSave"/>
2080+
<actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder" after="commentGoToCMSPage"/>
2081+
<actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage" after="navigateToAPageWithPageBuilder"/>
2082+
<actionGroup ref="addPageBuilderPageTitle" stepKey="enterPageTitle" after="switchToPageBuilderStage">
2083+
<argument name="contentType" value="PageBuilderBlockContentType"/>
2084+
</actionGroup>
2085+
<actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandGroupAddContent" after="enterPageTitle">
2086+
<argument name="group" value="PageBuilderBlockContentType"/>
2087+
</actionGroup>
2088+
<actionGroup ref="dragContentTypeToStage" stepKey="dragBlockIntoStage" after="expandGroupAddContent">
2089+
<argument name="contentType" value="PageBuilderBlockContentType"/>
2090+
</actionGroup>
2091+
<actionGroup ref="openPageBuilderEditPanel" stepKey="openEditAfterDrop" after="dragBlockIntoStage">
2092+
<argument name="contentType" value="PageBuilderBlockContentType"/>
2093+
</actionGroup>
2094+
<actionGroup ref="searchBlockInGrid" stepKey="searchBlockInGrid" after="openEditAfterDrop">
2095+
<argument name="block" value="$$createPreReqBlock$$"/>
2096+
</actionGroup>
2097+
<actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings" after="searchBlockInGrid"/>
2098+
<actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage" after="saveEditPanelSettings"/>
2099+
<actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStageAfterSave" after="saveAndContinueEditCmsPage"/>
2100+
<actionGroup ref="navigateToStoreFront" stepKey="navigateToProductStorefront">
2101+
<argument name="contentType" value="PageBuilderBlockContentType"/>
2102+
</actionGroup>
2103+
<comment userInput="---merging to remove step---" stepKey="scrollToProductDescription"/>
2104+
<seeNumberOfElements selector="{{RowOnStorefront.allRows}}" userInput="3" stepKey="see2RowsStorefront"/>
2105+
<seeElement selector="{{RowOnStorefront.backgroundColor('2', PageBuilderBackgroundColor_Hex_Grey.rgb)}}" stepKey="seeBackgroundColorRow1Storefront"/>
2106+
<seeElement selector="{{RowOnStorefront.backgroundColor('3', PageBuilderBackgroundColor_Hex_Grey.rgb)}}" stepKey="seeBackgroundColorRow2Storefront"/>
2107+
</test>
20422108
</tests>

0 commit comments

Comments
 (0)