Skip to content

Commit 1463ea0

Browse files
committed
MC-3330: Add Missing P0-P1 MFTF Tests For PageBuilder On Catalog Category
Add PageBuilderCategoryVerifyCanDeleteContentTypesFromOnHoverOptionMenus
1 parent 6fedf1f commit 1463ea0

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

app/code/Magento/PageBuilder/Test/Mftf/Test/AdminCatalogCategoryPageBuilder.xml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,4 +190,56 @@
190190
<!-- TODO - rename stepKey -->
191191
<scrollTo selector="//div[@class='category-description']" stepKey="scrollToProductDescription"/>
192192
</test>
193+
<test name="PageBuilderCategoryVerifyCanDeleteContentTypesFromOnHoverOptionMenus" extends="PageBuilderProductVerifyCanDeleteContentTypesFromOnHoverOptionMenus">
194+
<annotations>
195+
<features value="PageBuilder"/>
196+
<stories value="Catalog Category"/>
197+
<title value="Verify That User Can Delete Content Types From On-Hover Option Menus"/>
198+
<description value="This test is intended to ensure that users can delete content types from the on-hover option menus within the PageBuilder stage for Category Description."/>
199+
<severity value="CRITICAL"/>
200+
<useCaseId value="MC-3330"/>
201+
<testCaseId value="MC-14814"/>
202+
<group value="pagebuilder"/>
203+
<group value="pagebuilder-divider"/>
204+
<group value="pagebuilder-delete"/>
205+
<group value="pagebuilder-catalog-category"/>
206+
</annotations>
207+
<before>
208+
<comment userInput="---merging to remove step---" stepKey="createProduct"/>
209+
<!-- TODO - rename stepKey -->
210+
<actionGroup ref="navigateToCreatedCategory" stepKey="navigateToCreatedProductEditPage">
211+
<argument name="Category" value="$$createPreReqCategory$$"/>
212+
</actionGroup>
213+
<!-- TODO - rename stepKey -->
214+
<conditionalClick selector="{{AdminCategoryContentSection.sectionHeader}}" dependentSelector="{{AdminCategoryContentSection.uploadButton}}" visible="false" stepKey="expandAdminProductSection"/>
215+
</before>
216+
<after>
217+
<!-- TODO - rename stepKey -->
218+
<comment userInput="---merging to remove step---" stepKey="deleteCreatedProduct"/>
219+
<comment userInput="---merging to remove step---" stepKey="NavigateToAndResetProductGridToDefaultView"/>
220+
</after>
221+
<!-- Save Category -->
222+
<!-- TODO rename stepKey -->
223+
<comment userInput="Save Category" stepKey="commentSaveProduct"/>
224+
<!-- TODO - rename stepKey -->
225+
<actionGroup ref="saveCategoryForm" stepKey="saveProduct"/>
226+
<!-- TODO - rename stepKey -->
227+
<waitForPageLoad stepKey="waitForPageLoadSaveProduct"/>
228+
<!-- TODO rename stepKey -->
229+
<conditionalClick selector="{{AdminCategoryContentSection.sectionHeader}}" dependentSelector="{{AdminCategoryContentSection.uploadButton}}" visible="false" stepKey="expandAdminProductSection"/>
230+
<!-- Save Category After Delete -->
231+
<!-- TODO rename stepKey -->
232+
<comment userInput="Save Category After Delete" stepKey="commentSaveProductAfterDelete"/>
233+
<actionGroup ref="saveCategoryForm" stepKey="saveProductAfterDelete"/>
234+
<!-- TODO rename stepKey -->
235+
<waitForPageLoad stepKey="waitForPageLoadSaveProductAfterDelete"/>
236+
<!-- TODO rename stepKey -->
237+
<conditionalClick selector="{{AdminCategoryContentSection.sectionHeader}}" dependentSelector="{{AdminCategoryContentSection.uploadButton}}" visible="false" stepKey="expandAdminProductSectionAfterDelete"/>
238+
<!-- Validate Storefront -->
239+
<comment userInput="Validate Storefront" stepKey="commentValidateStorefront"/>
240+
<!-- TODO - rename stepKey -->
241+
<amOnPage url="$$createPreReqCategory.name$$.html" stepKey="navigateToProductStorefront"/>
242+
<!-- TODO - rename stepKey -->
243+
<scrollTo selector="//div[@class='category-description']" stepKey="scrollToProductDescription"/>
244+
</test>
193245
</tests>

0 commit comments

Comments
 (0)