Skip to content

Commit b1656e6

Browse files
authored
Merge branch 'develop' into Arrows-AC-14602
2 parents dda9a62 + a56944d commit b1656e6

File tree

2 files changed

+83
-0
lines changed

2 files changed

+83
-0
lines changed

app/code/Magento/PageBuilder/Test/Mftf/Data/CatalogProductData.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,7 @@
6464
<requiredEntity type="product_extension_attribute">EavStockItem</requiredEntity>
6565
<requiredEntity type="custom_attribute_array">CustomAttributeCategoryIds</requiredEntity>
6666
</entity>
67+
<entity name="AssertCategoryConfigSavedMessage">
68+
<data key="value">You saved the category.</data>
69+
</entity>
6770
</entities>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* ADOBE CONFIDENTIAL
5+
*
6+
* Copyright 2025 Adobe
7+
* All Rights Reserved.
8+
*
9+
* NOTICE: All information contained herein is, and remains
10+
* the property of Adobe and its suppliers, if any. The intellectual
11+
* and technical concepts contained herein are proprietary to Adobe
12+
* and its suppliers and are protected by all applicable intellectual
13+
* property laws, including trade secret and copyright laws.
14+
* Dissemination of this information or reproduction of this material
15+
* is strictly forbidden unless prior written permission is obtained
16+
* from Adobe.
17+
*/
18+
-->
19+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
21+
<test name="AdminAddCategoryDescriptionUsingPageBuilderEditorTest">
22+
<annotations>
23+
<features value="PageBuilder"/>
24+
<stories value="Catalog Category"/>
25+
<title value="Category Description Can Be Added Using Page Builder Editor"/>
26+
<description value="Validate admin can add category description using page builder editor when scope is set to storeview level"/>
27+
<severity value="MINOR"/>
28+
<testCaseId value="AC-11807"/>
29+
<group value="pagebuilder"/>
30+
<group value="pagebuilder-catalog-category"/>
31+
</annotations>
32+
<before>
33+
<!--Step 1&2: Create Category-->
34+
<createData entity="_defaultCategory" stepKey="createPreReqCategory"/>
35+
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
36+
<!--Custom Store View -->
37+
<actionGroup ref="AdminCreateStoreViewActionGroup" stepKey="createCustomStoreView">
38+
<argument name="customStore" value="NewStoreViewData"/>
39+
</actionGroup>
40+
</before>
41+
<after>
42+
<deleteData createDataKey="createPreReqCategory" stepKey="deletePreReqCategory"/>
43+
<actionGroup ref="DeleteCustomStoreViewWithoutBackupActionGroup" stepKey="deleteCustomStoreView">
44+
<argument name="storeViewName" value="{{NewStoreViewData.name}}"/>
45+
</actionGroup>
46+
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
47+
</after>
48+
<!--Step 3: Edit category in the backend on storeview level-->
49+
<actionGroup ref="NavigateToCreatedCategoryActionGroup" stepKey="navigateToCreatedProductEditPage">
50+
<argument name="Category" value="$$createPreReqCategory$$"/>
51+
</actionGroup>
52+
<actionGroup ref="SwitchCategoryStoreViewActionGroup" stepKey="SwitchStoreView">
53+
<argument name="Store" value="NewStoreViewData.name"/>
54+
<argument name="CatName" value="_defaultCategory.name"/>
55+
</actionGroup>
56+
<actionGroup ref="expandAdminCategorySection" stepKey="expandAdminCategorySection"/>
57+
<!--Step 4: Untick the box 'Use default value' next to the category description field WYSWYG editor-->
58+
<scrollTo selector="{{AdminCategoryContentSection.categoryDescriptionUseDefault}}" x="0" y="-80" stepKey="scrollToDescription"/>
59+
<conditionalClick selector="{{AdminCategoryContentSection.categoryDescriptionUseDefault}}" dependentSelector="{{AdminCategoryContentSection.categoryDescriptionUseDefault}}" visible="true" stepKey="uncheckUseDefaultValueStoreView"/>
60+
<scrollTo selector="{{PageBuilderProductAttribute.PageBuilderBtn('description')}}" x="0" y="-80" stepKey="scrollToPageBuilderbtn"/>
61+
<!--Step 5: Enter a description in the WYSIWYG editor and assert the description-->
62+
<actionGroup ref="openPageBuilderForAttribute" stepKey="openPageBuilderEditor"/>
63+
<actionGroup ref="dragContentTypeToStage" stepKey="dragRowToRootContainer">
64+
<argument name="contentType" value="PageBuilderRowContentType"/>
65+
<argument name="containerTargetType" value="PageBuilderRootContainerContentType"/>
66+
</actionGroup>
67+
<actionGroup ref="expandPageBuilderPanelMenuSection" stepKey="expandPageBuilderPanelMenuSection">
68+
<argument name="contentType" value="PageBuilderHeadingContentType"/>
69+
</actionGroup>
70+
<actionGroup ref="dragContentTypeToStage" stepKey="dragHeadingOntoStage">
71+
<argument name="contentType" value="PageBuilderHeadingContentType"/>
72+
</actionGroup>
73+
<actionGroup ref="enterHeadingOnStage" stepKey="enterCatorgyDescriptionInPageBuilderEditor"/>
74+
<actionGroup ref="exitPageBuilderFullScreen" stepKey="exitPageBuilderFullScreen"/>
75+
<actionGroup ref="saveCatalogCategory" stepKey="saveCatalogCategory"/>
76+
<actionGroup ref="AssertMessageInAdminPanelActionGroup" stepKey="seeCategorySavedSuccessMessage">
77+
<argument name="message" value="{{AssertCategoryConfigSavedMessage.value}}"/>
78+
</actionGroup>
79+
</test>
80+
</tests>

0 commit comments

Comments
 (0)