Skip to content

Commit c42c9a1

Browse files
committed
#429: User can add content to the Stage directly
- new test PageBuilderCategoryAddContentDirectlyToStageTest is added
1 parent f76644b commit c42c9a1

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

app/code/Magento/PageBuilder/Test/Mftf/Test/AdminCMSBlockPageBuilderTest/PageBuilderCMSBlockAddContentDirectlyToStageTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<features value="PageBuilder"/>
1313
<stories value="CMS Block"/>
1414
<title value="Verify Can Only Add Expected Content Types to CMSBlock Stage Directly"/>
15-
<description value="Verify user can add Row, Columns, Tabs, HTML Code, and Blocks to CMS Block stage directly. Verify user cannot add any other content type to MS Block stage directly"/>
15+
<description value="Verify user can add Row, Columns, Tabs, HTML Code, and Blocks to CMS Block stage directly. Verify user cannot add any other content type to CMS Block stage directly"/>
1616
<severity value="BLOCKER"/>
1717
<group value="pagebuilder"/>
1818
<group value="pagebuilder-stage"/>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
10+
<test name="PageBuilderCategoryAddContentDirectlyToStageTest" extends="PageBuilderCMSPageAddContentDirectlyToStageTest">
11+
<annotations>
12+
<features value="PageBuilder"/>
13+
<stories value="Catalog Category"/>
14+
<title value="Verify Can Only Add Expected Content Types to Category Stage Directly"/>
15+
<description value="Verify user can add Row, Columns, Tabs, HTML Code, and Blocks to Category stage directly. Verify user cannot add any other content type to Category stage directly"/>
16+
<severity value="BLOCKER"/>
17+
<group value="pagebuilder"/>
18+
<group value="pagebuilder-stage"/>
19+
<group value="pagebuilder-catalog-category"/>
20+
</annotations>
21+
<before>
22+
<createData entity="_defaultCategory" stepKey="createPreReqCategory" after="loginAsAdmin"/>
23+
<actionGroup ref="NavigateToCreatedCategoryActionGroup" stepKey="navigateToCreatedCMSPage">
24+
<argument name="Category" value="$$createPreReqCategory$$"/>
25+
</actionGroup>
26+
<actionGroup ref="expandAdminCategorySection" stepKey="expandAdminCategorySection" after="navigateToCreatedCMSPage"/>
27+
</before>
28+
<after>
29+
<deleteData createDataKey="createPreReqCategory" stepKey="deletePreReqCategory"/>
30+
</after>
31+
<!-- Save Category and Verify Expected Content Types on Stage -->
32+
<actionGroup ref="saveCatalogCategory" stepKey="saveAndContinueEditCmsPage"/>
33+
<actionGroup ref="expandAdminCategorySection" stepKey="expandAdminCategorySection" after="saveAndContinueEditCmsPage"/>
34+
<actionGroup ref="AdminOpenPageBuilderFromContentPreviewOverlayActionGroup" stepKey="switchToPageBuilderStage"/>
35+
<!-- Verify Expected Content Types on Storefront -->
36+
<actionGroup ref="NavigateToStorefrontForCreatedPageActionGroup" stepKey="navigateToCMSPageStorefront4">
37+
<argument name="page" value="$$createPreReqCategory.name$$.html"/>
38+
</actionGroup>
39+
</test>
40+
</tests>

0 commit comments

Comments
 (0)