Skip to content

Commit abc9f09

Browse files
MC-35402: [Page Builder] New top-level Full-Width and Full-Bleed components are always nested in a Contained component
1 parent 48de7da commit abc9f09

File tree

3 files changed

+84
-0
lines changed

3 files changed

+84
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
10+
<actionGroup name="validateCategoryDescriptionAppearanceStorefront">
11+
<arguments>
12+
<argument name="dataAppearance" defaultValue="contained" type="string"/>
13+
</arguments>
14+
<waitForElementVisible time="30" selector="{{StorefrontCategoryMainSection.DataAppearanceRow(dataAppearance)}}" stepKey="waitForContentTypeStorefront"/>
15+
</actionGroup>
16+
</actionGroups>

app/code/Magento/PageBuilder/Test/Mftf/Section/PageBuilderCatalogSection/StorefrontCategoryMainSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@
1010
<section name="StorefrontCategoryMainSection">
1111
<!-- This goes in CE repo -->
1212
<element name="CatalogDescription" type="text" selector="//div[@class='category-description']"/>
13+
<element name="DataAppearanceRow" type="text" selector="div.category-description > [data-appearance='{{appearance}}']" parameterized="true"/>
1314
</section>
1415
</sections>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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="PageBuilderCatalogCategoryCreateCategoryWithPageBuilderDescriptionAppearanceTest">
11+
<annotations>
12+
<features value="PageBuilder"/>
13+
<stories value="Catalog Category"/>
14+
<title value="Category description should be properly displayed with a selected appearance type"/>
15+
<description value="Validate the proper value of Category description top-level row's data-appearance on storefront"/>
16+
<severity value="CRITICAL"/>
17+
<useCaseId value="MC-35402"/>
18+
<testCaseId value="MC-37710"/>
19+
<group value="pagebuilder"/>
20+
<group value="pagebuilder-layout"/>
21+
<group value="pagebuilder-fullwidth"/>
22+
<group value="pagebuilder-catalog-category"/>
23+
</annotations>
24+
<before>
25+
<createData entity="_defaultCategory" stepKey="createPreReqCategory"/>
26+
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
27+
<actionGroup ref="NavigateToCreatedCategoryActionGroup" stepKey="navigateToCreatedProductEditPage">
28+
<argument name="Category" value="$$createPreReqCategory$$"/>
29+
</actionGroup>
30+
<actionGroup ref="expandAdminCategorySection" stepKey="expandAdminCategorySection"/>
31+
</before>
32+
<after>
33+
<deleteData createDataKey="createPreReqCategory" stepKey="deletePreReqCategory"/>
34+
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
35+
</after>
36+
<actionGroup ref="openPageBuilderForAttribute" stepKey="enablePageBuilderOnCatalog"/>
37+
<actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage">
38+
<argument name="contentType" value="PageBuilderRowContentType"/>
39+
</actionGroup>
40+
<actionGroup ref="chooseVisualSelectOption" stepKey="setAppearance">
41+
<argument name="property" value="PageBuilderRowAppearance_FullWidth"/>
42+
</actionGroup>
43+
<actionGroup ref="saveEditPanelSettingsFullScreen" stepKey="saveEditPanelSettings"/>
44+
<actionGroup ref="expandPageBuilderPanelMenuSection" stepKey="expandPageBuilderPanelMenuSection">
45+
<argument name="contentType" value="PageBuilderHeadingContentType"/>
46+
</actionGroup>
47+
<actionGroup ref="dragContentTypeToStage" stepKey="dragHeadingOntoStage">
48+
<argument name="contentType" value="PageBuilderHeadingContentType"/>
49+
</actionGroup>
50+
<comment userInput="Add heading to stage" stepKey="commentAddHeadingToStage"/>
51+
<actionGroup ref="enterHeadingOnStage" stepKey="enterHeadingOnStage">
52+
<argument name="headingText" value="PageBuilderHeadingTextProperty"/>
53+
</actionGroup>
54+
<actionGroup ref="exitPageBuilderFullScreen" stepKey="exitPageBuilderFullScreen"/>
55+
<actionGroup ref="SetLayoutActionGroup" stepKey="setFullWidthLayout">
56+
<argument name="designSection" value="CategoryDesignSection"/>
57+
<argument name="layoutOption" value="PageBuilderFullWidthLayout.category"/>
58+
</actionGroup>
59+
<actionGroup ref="saveCatalogCategory" stepKey="saveCatalogCategory"/>
60+
<actionGroup ref="NavigateToStorefrontForCreatedPageActionGroup" stepKey="navigateToStorefront">
61+
<argument name="page" value="$createPreReqCategory.name$.html"/>
62+
</actionGroup>
63+
<actionGroup ref="validateCategoryDescriptionAppearanceStorefront" stepKey="validateDataAppearance">
64+
<argument name="dataAppearance" value="full-width"/>
65+
</actionGroup>
66+
</test>
67+
</tests>

0 commit comments

Comments
 (0)