Skip to content

Commit 38fb1b0

Browse files
#23570: MFTF test fix.
1 parent 5ce2b74 commit 38fb1b0

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,9 @@
5757
<fillField selector="{{CategoryDisplaySettingsSection.layeredNavigationPriceInput}}" userInput="5.5" stepKey="fillThePrice"/>
5858

5959
<!--Search the products and select the category products-->
60-
<scrollTo selector="{{AdminCategoryBasicFieldSection.productsInCategory}}" x="0" y="-80" stepKey="scrollToProductInCategory"/>
61-
<click selector="{{AdminCategoryBasicFieldSection.productsInCategory}}" stepKey="clickOnProductInCategory"/>
62-
<fillField selector="{{AdminCategoryContentSection.productTableColumnName}}" userInput="$$simpleProduct.name$$" stepKey="selectProduct"/>
63-
<click selector="{{AdminCategoryContentSection.productSearch}}" stepKey="clickSearchButton"/>
64-
<click selector="{{AdminCategoryContentSection.productTableRow}}" stepKey="selectProductFromTableRow"/>
60+
<actionGroup ref="AdminAddProductToCategoryActionGroup" stepKey="addProductToCategory">
61+
<argument name="product" value="$$simpleProduct$$"/>
62+
</actionGroup>
6563
<click selector="{{AdminCategoryMainActionsSection.SaveButton}}" stepKey="clickSaveButton"/>
6664
<waitForPageLoad stepKey="waitForCategorySaved"/>
6765
<see selector="{{AdminCategoryMessagesSection.SuccessMessage}}" userInput="You saved the category." stepKey="assertSuccessMessage"/>

0 commit comments

Comments
 (0)