Skip to content

Commit 184d1d2

Browse files
committed
ACQE-8194: Admin can add category description using page builder editor when scope is set to storeview level
- Changes made as per latest comments
1 parent 80d49b2 commit 184d1d2

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
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>

app/code/Magento/PageBuilder/Test/Mftf/Test/AdminCatalogCategoryPageBuilderTest/AdminAddCategoryDescriptionUsingPageBuilderEditorTest.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
<description value="Validate admin can add category description using page builder editor when scope is set to storeview level"/>
2727
<severity value="MINOR"/>
2828
<testCaseId value="AC-11807"/>
29+
<group value="pagebuilder"/>
30+
<group value="pagebuilder-catalog-category"/>
2931
</annotations>
3032
<before>
3133
<!--Step 1&2: Create Category-->
@@ -55,7 +57,7 @@
5557
<!--Step 4: Untick the box 'Use default value' next to the category description field WYSWYG editor-->
5658
<scrollTo selector="{{AdminCategoryContentSection.categoryDescriptionUseDefault}}" x="0" y="-80" stepKey="scrollToDescription"/>
5759
<conditionalClick selector="{{AdminCategoryContentSection.categoryDescriptionUseDefault}}" dependentSelector="{{AdminCategoryContentSection.categoryDescriptionUseDefault}}" visible="true" stepKey="uncheckUseDefaultValueStoreView"/>
58-
<scrollTo selector="{{PageBuilderProductAttribute.PageBuilderBtn('description')}}" x="0" y="-80" stepKey="scrollToPageBuilderbtn"/>
60+
<scrollTo selector="{{PageBuilderProductAttribute.PageBuilderBtn('description')}}" x="0" y="-80" stepKey="scrollToPageBuilderbtn"/>
5961
<!--Step 5: Enter a description in the WYSIWYG editor and assert the description-->
6062
<actionGroup ref="openPageBuilderForAttribute" stepKey="openPageBuilderEditor"/>
6163
<actionGroup ref="dragContentTypeToStage" stepKey="dragRowToRootContainer">
@@ -72,7 +74,7 @@
7274
<actionGroup ref="exitPageBuilderFullScreen" stepKey="exitPageBuilderFullScreen"/>
7375
<actionGroup ref="saveCatalogCategory" stepKey="saveCatalogCategory"/>
7476
<actionGroup ref="AssertMessageInAdminPanelActionGroup" stepKey="seeCategorySavedSuccessMessage">
75-
<argument name="message" value="You saved the category."/>
77+
<argument name="message" value="{{AssertCategoryConfigSavedMessage.value}}"/>
7678
</actionGroup>
7779
</test>
7880
</tests>

0 commit comments

Comments
 (0)