Skip to content

Commit 99c34e4

Browse files
committed
Merge branch 'pr-35118' into 2.4-develop-prs
2 parents a56b498 + 62b1bfb commit 99c34e4

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

app/code/Magento/Catalog/Test/Mftf/Test/AdminUpdateSimpleProductWithRegularPriceInStockUnassignFromCategoryTest.xml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,22 +44,28 @@
4444

4545
<!-- Update simple product by unselecting categories -->
4646
<scrollTo selector="{{AdminProductFormSection.productStockStatus}}" stepKey="scroll"/>
47-
<click selector="{{AdminProductFormSection.categoriesDropdown}}" stepKey="clickCategoriesDropDown"/>
48-
<click selector="{{AdminProductFormSection.unselectCategories($$initialCategoryEntity.name$$)}}" stepKey="unselectCategories"/>
49-
<actionGroup ref="AdminSubmitCategoriesPopupActionGroup" stepKey="clickOnDoneAdvancedCategory"/>
47+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickCategoriesDropDown"/>
48+
<actionGroup ref="RemoveCategoryFromProductActionGroup" stepKey="unselectCategories">
49+
<argument name="categoryName" value="$$initialCategoryEntity.name$$"/>
50+
</actionGroup>
51+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickOnDoneAdvancedCategory"/>
5052
<scrollToTopOfPage stepKey="scrollToTopOfAdminProductFormSection"/>
5153
<actionGroup ref="AdminProductFormSaveButtonClickActionGroup" stepKey="clickSaveButton"/>
5254

5355
<!-- Verify customer see success message -->
54-
<see selector="{{AdminProductFormSection.successMessage}}" userInput="You saved the product." stepKey="seeAssertSimpleProductSaveSuccessMessage"/>
56+
<actionGroup ref="AssertMessageInAdminPanelActionGroup" stepKey="seeAssertSimpleProductSaveSuccessMessage">
57+
<argument name="message" value="You saved the product."/>
58+
</actionGroup>
5559

5660
<!--Search default simple product in the grid page -->
5761
<actionGroup ref="AdminOpenCategoryPageActionGroup" stepKey="OpenCategoryCatalogPage"/>
5862
<actionGroup ref="AdminExpandCategoryTreeActionGroup" stepKey="clickExpandTree"/>
59-
<click selector="{{AdminCategorySidebarTreeSection.categoryInTree($$initialCategoryEntity.name$$)}}" stepKey="selectCategory"/>
60-
<waitForPageLoad stepKey="waitForPageToLoad"/>
61-
<click selector="{{AdminCategoryProductsSection.sectionHeader}}" stepKey="clickAdminCategoryProductSection"/>
62-
<waitForPageLoad stepKey="waitForSectionHeaderToLoad"/>
63+
<actionGroup ref="AdminCategoriesOpenCategoryActionGroup" stepKey="selectCategory">
64+
<argument name="category" value="$$initialCategoryEntity$$"/>
65+
</actionGroup>
66+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForPageToLoad"/>
67+
<actionGroup ref="AdminCategoryPageOpenProductsInCategorySectionActionGroup" stepKey="clickAdminCategoryProductSection"/>
68+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForSectionHeaderToLoad"/>
6369
<dontSee selector="{{AdminCategoryProductsGridSection.rowProductName($$initialSimpleProduct.name$$)}}" stepKey="dontSeeProductNameOnCategoryCatalogPage"/>
6470
</test>
6571
</tests>

0 commit comments

Comments
 (0)