Skip to content

Commit 9d89cdd

Browse files
committed
ACQE-8194: Admin can add category description using page builder editor when scope is set to storeview level
- Added new test file
1 parent 1568910 commit 9d89cdd

File tree

1 file changed

+77
-0
lines changed

1 file changed

+77
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
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+
</annotations>
30+
<before>
31+
<!--Step 1&2: Create Category-->
32+
<createData entity="_defaultCategory" stepKey="createPreReqCategory"/>
33+
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
34+
<!--Custom Store View -->
35+
<actionGroup ref="AdminCreateStoreViewActionGroup" stepKey="createCustomStoreView">
36+
<argument name="customStore" value="NewStoreViewData"/>
37+
</actionGroup>
38+
</before>
39+
<after>
40+
<deleteData createDataKey="createPreReqCategory" stepKey="deletePreReqCategory"/>
41+
<actionGroup ref="DeleteCustomStoreViewWithoutBackupActionGroup" stepKey="deleteCustomStoreView">
42+
<argument name="storeViewName" value="{{NewStoreViewData.name}}"/>
43+
</actionGroup>
44+
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
45+
</after>
46+
<!--Step 3: Edit category in the backend on storeview level-->
47+
<actionGroup ref="NavigateToCreatedCategoryActionGroup" stepKey="navigateToCreatedProductEditPage">
48+
<argument name="Category" value="$$createPreReqCategory$$"/>
49+
</actionGroup>
50+
<actionGroup ref="SwitchCategoryStoreViewActionGroup" stepKey="SwitchStoreView">
51+
<argument name="Store" value="NewStoreViewData.name"/>
52+
<argument name="CatName" value="_defaultCategory.name"/>
53+
</actionGroup>
54+
<actionGroup ref="expandAdminCategorySection" stepKey="expandAdminCategorySection"/>
55+
<!--Step 4: Untick the box 'Use default value' next to the category description field WYSWYG editor-->
56+
<scrollTo selector="{{AdminCategoryContentSection.categoryDescriptionUseDefault}}" x="0" y="-80" stepKey="scrollToDescription"/>
57+
<conditionalClick selector="{{AdminCategoryContentSection.categoryDescriptionUseDefault}}" dependentSelector="{{AdminCategoryContentSection.categoryDescriptionUseDefault}}" visible="true" stepKey="uncheckUseDefaultValueStoreView"/>
58+
<!--Step 5: Enter a description in the WYSIWYG editor and assert the description-->
59+
<actionGroup ref="openPageBuilderForAttribute" stepKey="openPageBuilderEditor"/>
60+
<actionGroup ref="dragContentTypeToStage" stepKey="dragRowToRootContainer">
61+
<argument name="contentType" value="PageBuilderRowContentType"/>
62+
<argument name="containerTargetType" value="PageBuilderRootContainerContentType"/>
63+
</actionGroup>
64+
<actionGroup ref="expandPageBuilderPanelMenuSection" stepKey="expandPageBuilderPanelMenuSection">
65+
<argument name="contentType" value="PageBuilderHeadingContentType"/>
66+
</actionGroup>
67+
<actionGroup ref="dragContentTypeToStage" stepKey="dragHeadingOntoStage">
68+
<argument name="contentType" value="PageBuilderHeadingContentType"/>
69+
</actionGroup>
70+
<actionGroup ref="enterHeadingOnStage" stepKey="enterCatorgyDescriptionInPageBuilderEditor"/>
71+
<actionGroup ref="exitPageBuilderFullScreen" stepKey="exitPageBuilderFullScreen"/>
72+
<actionGroup ref="saveCatalogCategory" stepKey="saveCatalogCategory"/>
73+
<actionGroup ref="AssertMessageInAdminPanelActionGroup" stepKey="seeCategorySavedSuccessMessage">
74+
<argument name="message" value="You saved the category."/>
75+
</actionGroup>
76+
</test>
77+
</tests>

0 commit comments

Comments
 (0)