Skip to content

Commit 6cc4a89

Browse files
committed
MC-11296: Move Product between Categories (Cron is ON, Update by Schedule Mode)
1 parent 85ddf9a commit 6cc4a89

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

app/code/Magento/Catalog/Test/Mftf/Page/AdminCategoryPage.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@
1919
<section name="AdminCategoryModalSection"/>
2020
<section name="AdminCategoryMessagesSection"/>
2121
<section name="AdminCategoryContentSection"/>
22+
<section name="AdminCategoryAddProductsModalSection"/>
2223
</page>
2324
</pages>

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,28 +36,28 @@
3636
<actionGroup ref="AdminAnchorCategoryActionGroup" stepKey="anchorCategory">
3737
<argument name="categoryName" value="$$createAnchoredCategory1.name$$"/>
3838
</actionGroup>
39-
<createData entity="defaultSimpleProduct" stepKey="simpleProduct"/>
4039

4140
<!-- Create subcategory <Sub1> of the anchored category -->
4241
<click selector="{{AdminCategorySidebarActionSection.AddSubcategoryButton}}" stepKey="clickOnAddSubCategoryButton"/>
4342
<fillField selector="{{AdminCategoryBasicFieldSection.CategoryNameInput}}" userInput="{{SimpleSubCategory.name}}" stepKey="addSubCategoryName"/>
44-
45-
<!-- Assign <product1> to the <Sub1> -->
46-
<scrollTo selector="{{AdminCategoryBasicFieldSection.productsInCategory}}" x="0" y="-80" stepKey="scrollToProductInCategory"/>
47-
<click selector="{{AdminCategoryBasicFieldSection.productsInCategory}}" stepKey="clickOnProductInCategory"/>
48-
<click selector="{{AdminCategoryProductsSection.addProducts}}" stepKey="clickButtonAddProducts"/>
49-
<waitForPageLoad stepKey="waitForPanelAddProducts"/>
50-
<conditionalClick selector="{{AdminCategoryAddProductsModalSection.clearAll}}" dependentSelector="{{AdminCategoryAddProductsModalSection.clearAll}}" visible="true" stepKey="clearFilters"/>
51-
<fillField selector="{{AdminCategoryAddProductsModalSection.searchKeyword}}" userInput="$$simpleProduct.name$$" stepKey="fillSearch"/>
52-
<click selector="{{AdminCategoryAddProductsModalSection.searchFullText}}" stepKey="clickSearch"/>
53-
<click selector="{{AdminCategoryAddProductsModalSection.gridActionToggle}}" stepKey="clickActionToggle"/>
54-
<click selector="{{AdminCategoryAddProductsModalSection.gridSelectAll}}" stepKey="clickSelectAll"/>
55-
<click selector="{{AdminCategoryAddProductsModalSection.saveClose}}" stepKey="saveAndClose"/>
56-
<waitForLoadingMaskToDisappear stepKey="waitForSavingSearch"/>
5743
<click selector="{{AdminCategoryMainActionsSection.SaveButton}}" stepKey="saveSubCategory1"/>
5844
<waitForPageLoad stepKey="waitForSecondCategoryToSave"/>
5945
<seeElement selector="{{AdminCategoryMessagesSection.SuccessMessage}}" stepKey="seeSuccessMessage"/>
6046

47+
<!-- Assign <product1> to the <Sub1> -->
48+
<createData entity="defaultSimpleProduct" stepKey="simpleProduct"/>
49+
50+
<amOnPage url="{{AdminProductEditPage.url($$simpleProduct.id$$)}}" stepKey="goToProduct"/>
51+
<waitForPageLoad stepKey="waitForProductPage"/>
52+
<click selector="{{AdminProductFormSection.categoriesDropdown}}" stepKey="activateDropDown"/>
53+
<fillField userInput="{{SimpleSubCategory.name}}" selector="{{AdminProductFormSection.searchCategory}}" stepKey="fillSearchField"/>
54+
<waitForPageLoad stepKey="waitForSearchSubCategory"/>
55+
<click selector="{{AdminProductFormSection.selectCategory(SimpleSubCategory.name)}}" stepKey="selectSubCategory"/>
56+
<click selector="{{AdminProductFormSection.done}}" stepKey="clickButtonDone"/>
57+
<waitForPageLoad stepKey="waitForCategoryApply"/>
58+
<click selector="{{AdminProductFormSection.save}}" stepKey="clickButtonSave"/>
59+
<waitForPageLoad stepKey="waitForSave"/>
60+
6161
<!-- Create another non-anchored category <Cat2> -->
6262
<createData entity="_defaultCategory" stepKey="createSecondCategory"/>
6363

0 commit comments

Comments
 (0)