Skip to content

Commit b660981

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

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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="PageBuilderProductAddContentDirectlyToStageTest" extends="PageBuilderCMSPageAddContentDirectlyToStageTest">
11+
<annotations>
12+
<features value="PageBuilder"/>
13+
<stories value="Catalog Products"/>
14+
<title value="Verify Can Only Add Expected Content Types to Products Stage Directly"/>
15+
<description value="Verify user can add Row, Columns, Tabs, HTML Code, and Blocks to Products stage directly. Verify user cannot add any other content type to Products stage directly"/>
16+
<severity value="BLOCKER"/>
17+
<group value="pagebuilder"/>
18+
<group value="pagebuilder-stage"/>
19+
<group value="pagebuilder-catalog-product"/>
20+
</annotations>
21+
<before>
22+
<createData entity="_defaultCategory" stepKey="createPreReqCategory" after="loginAsAdmin"/>
23+
<createData entity="_defaultProduct" stepKey="createProduct" after="createPreReqCategory">
24+
<requiredEntity createDataKey="createPreReqCategory"/>
25+
</createData>
26+
<actionGroup ref="NavigateToCreatedProductEditPageActionGroup" stepKey="navigateToCreatedCMSPage">
27+
<argument name="product" value="$$createProduct$$"/>
28+
</actionGroup>
29+
<actionGroup ref="ExpandAdminProductSectionActionGroup" stepKey="expandAdminProductSection" after="navigateToCreatedCMSPage"/>
30+
</before>
31+
<after>
32+
<deleteData createDataKey="createProduct" before="deletePreReqCategory" stepKey="deleteCreatedProduct"/>
33+
<deleteData createDataKey="createPreReqCategory" stepKey="deletePreReqCategory"/>
34+
</after>
35+
<!-- Save Category and Verify Expected Content Types on Stage -->
36+
<actionGroup ref="SaveProductFormActionGroup" stepKey="saveAndContinueEditCmsPage"/>
37+
<actionGroup ref="ExpandAdminProductSectionActionGroup" stepKey="expandAdminProductsSection" after="saveAndContinueEditCmsPage"/>
38+
<actionGroup ref="AdminOpenPageBuilderFromContentPreviewOverlayActionGroup" stepKey="switchToPageBuilderStage"/>
39+
<!-- Verify Expected Content Types on Storefront -->
40+
<actionGroup ref="NavigateToStorefrontForCreatedPageActionGroup" stepKey="navigateToCMSPageStorefront4">
41+
<argument name="page" value="$$createProduct.name$$.html"/>
42+
</actionGroup>
43+
</test>
44+
</tests>

0 commit comments

Comments
 (0)