Skip to content

Commit 3d33585

Browse files
committed
MC-3328: Add Missing P0-P1 MFTF Tests For PageBuilder On CMS Block
- add new test for BlockAddAndEditRowColumnSlide extends from existing
1 parent 82bc558 commit 3d33585

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

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

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1847,4 +1847,68 @@
18471847
<argument name="containerTargetIndex" value="1"/>
18481848
</actionGroup>
18491849
</test>
1850+
<test name="BlockAddAndEditRowColumnSlide" extends="PageBuilderProductAddAndEditRowColumnSlide">
1851+
<annotations>
1852+
<features value="PageBuilder"/>
1853+
<stories value="CMS Block"/>
1854+
<title value="Add and Edit Row, Column, and Slider to PageBuilder in CMS Block"/>
1855+
<description value="This test is intended to ensure that basic adding and editing of multiple content types work correctly in the CMS Block area of PageBuilder."/>
1856+
<severity value="CRITICAL"/>
1857+
<useCaseId value="MC-3328"/>
1858+
<testCaseId value="MC-13737"/>
1859+
<group value="pagebuilder"/>
1860+
<group value="pagebuilder-block"/>
1861+
<group value="pagebuilder-row"/>
1862+
<group value="pagebuilder-column"/>
1863+
<group value="pagebuilder-slide"/>
1864+
<group value="pagebuilder-cms-block"/>
1865+
</annotations>
1866+
<before>
1867+
<comment userInput="---merging to remove step---" stepKey="createPreReqCategory"/>
1868+
<comment userInput="---merging to remove step---" stepKey="createProduct"/>
1869+
<createData entity="_defaultBlock" stepKey="createPreReqBlock" after="loginAsAdmin"/>
1870+
<actionGroup ref="navigateToCreatedCMSBlockPage" stepKey="navigateToCreatedProductEditPage">
1871+
<argument name="CMSBlockPage" value="$$createPreReqBlock$$" />
1872+
</actionGroup>
1873+
<comment userInput="---merging to remove step---" stepKey="expandAdminProductSection"/>
1874+
<comment userInput="---merging to remove step---" stepKey="openPageBuilderForDescription"/>
1875+
</before>
1876+
<after>
1877+
<deleteData createDataKey="createPreReqBlock" stepKey="deleteCreatedProduct"/>
1878+
<comment userInput="---merging to remove step---" stepKey="deleteCreatedCategory"/>
1879+
<comment userInput="---merging to remove step---" stepKey="NavigateToAndResetProductGridToDefaultView"/>
1880+
</after>
1881+
<comment userInput="---merging to remove step---" stepKey="exitPageBuilderFullScreen"/>
1882+
<click selector="{{CmsNewBlockBlockActionsSection.savePage}}" stepKey="saveProduct"/>
1883+
<comment userInput="---merging to remove step---" stepKey="expandAdminProductSection"/>
1884+
<comment userInput="---merging to remove step---" stepKey="openPageBuilderForDescription"/>
1885+
<!-- Go to CMS Page and choose Block -->
1886+
<comment userInput="Go to CMS Page and choose Block" stepKey="commentGoToCMSPage" after="seeBackgroundColorSlide2StageAfterSave"/>
1887+
<actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder" after="commentGoToCMSPage"/>
1888+
<actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage" after="navigateToAPageWithPageBuilder"/>
1889+
<actionGroup ref="addPageBuilderPageTitle" stepKey="enterPageTitle" after="switchToPageBuilderStage">
1890+
<argument name="contentType" value="PageBuilderBlockContentType"/>
1891+
</actionGroup>
1892+
<actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandGroupAddContent" after="enterPageTitle">
1893+
<argument name="group" value="PageBuilderBlockContentType"/>
1894+
</actionGroup>
1895+
<actionGroup ref="dragContentTypeToStage" stepKey="dragBlockIntoStage" after="expandGroupAddContent">
1896+
<argument name="contentType" value="PageBuilderBlockContentType"/>
1897+
</actionGroup>
1898+
<actionGroup ref="openPageBuilderEditPanel" stepKey="openEditAfterDrop" after="dragBlockIntoStage">
1899+
<argument name="contentType" value="PageBuilderBlockContentType"/>
1900+
</actionGroup>
1901+
<actionGroup ref="searchBlockInGrid" stepKey="searchBlockInGrid" after="openEditAfterDrop">
1902+
<argument name="block" value="$$createPreReqBlock$$"/>
1903+
</actionGroup>
1904+
<actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings" after="searchBlockInGrid"/>
1905+
<actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage" after="saveEditPanelSettings"/>
1906+
<actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStageAfterSave" after="saveAndContinueEditCmsPage"/>
1907+
<actionGroup ref="navigateToStoreFront" stepKey="navigateToProductStorefront">
1908+
<argument name="contentType" value="PageBuilderBlockContentType"/>
1909+
</actionGroup>
1910+
<comment userInput="---merging to remove step---" stepKey="scrollToProductDescription"/>
1911+
<seeNumberOfElements selector="{{RowOnStorefront.allRows}}" userInput="3" stepKey="see2RowsStorefront"/>
1912+
<seeElement selector="{{RowOnStorefront.backgroundColor('3', PageBuilderBackgroundColor_Hex_Grey.rgb)}}" stepKey="seeBackgroundColorRowStorefront"/>
1913+
</test>
18501914
</tests>

0 commit comments

Comments
 (0)