|
43 | 43 |
|
44 | 44 | <!-- Update simple product by unselecting categories -->
|
45 | 45 | <scrollTo selector="{{AdminProductFormSection.productStockStatus}}" stepKey="scroll"/>
|
46 |
| - <click selector="{{AdminProductFormSection.categoriesDropdown}}" stepKey="clickCategoriesDropDown"/> |
47 |
| - <click selector="{{AdminProductFormSection.unselectCategories($$initialCategoryEntity.name$$)}}" stepKey="unselectCategories"/> |
48 |
| - <actionGroup ref="AdminSubmitCategoriesPopupActionGroup" stepKey="clickOnDoneAdvancedCategory"/> |
| 46 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickCategoriesDropDown"/> |
| 47 | + <actionGroup ref="RemoveCategoryFromProductActionGroup" stepKey="unselectCategories"> |
| 48 | + <argument name="categoryName" value="$$initialCategoryEntity.name$$"/> |
| 49 | + </actionGroup> |
| 50 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickOnDoneAdvancedCategory"/> |
49 | 51 | <scrollToTopOfPage stepKey="scrollToTopOfAdminProductFormSection"/>
|
50 | 52 | <actionGroup ref="AdminProductFormSaveButtonClickActionGroup" stepKey="clickSaveButton"/>
|
51 | 53 |
|
52 | 54 | <!-- Verify customer see success message -->
|
53 |
| - <see selector="{{AdminProductFormSection.successMessage}}" userInput="You saved the product." stepKey="seeAssertSimpleProductSaveSuccessMessage"/> |
| 55 | + <actionGroup ref="AssertMessageInAdminPanelActionGroup" stepKey="seeAssertSimpleProductSaveSuccessMessage"> |
| 56 | + <argument name="message" value="You saved the product."/> |
| 57 | + </actionGroup> |
54 | 58 |
|
55 | 59 | <!--Search default simple product in the grid page -->
|
56 | 60 | <actionGroup ref="AdminOpenCategoryPageActionGroup" stepKey="OpenCategoryCatalogPage"/>
|
57 | 61 | <actionGroup ref="AdminExpandCategoryTreeActionGroup" stepKey="clickExpandTree"/>
|
58 |
| - <click selector="{{AdminCategorySidebarTreeSection.categoryInTree($$initialCategoryEntity.name$$)}}" stepKey="selectCategory"/> |
59 |
| - <waitForPageLoad stepKey="waitForPageToLoad"/> |
60 |
| - <click selector="{{AdminCategoryProductsSection.sectionHeader}}" stepKey="clickAdminCategoryProductSection"/> |
61 |
| - <waitForPageLoad stepKey="waitForSectionHeaderToLoad"/> |
| 62 | + <actionGroup ref="AdminCategoriesOpenCategoryActionGroup" stepKey="selectCategory"> |
| 63 | + <argument name="category" value="$$initialCategoryEntity$$"/> |
| 64 | + </actionGroup> |
| 65 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForPageToLoad"/> |
| 66 | + <actionGroup ref="AdminCategoryPageOpenProductsInCategorySectionActionGroup" stepKey="clickAdminCategoryProductSection"/> |
| 67 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForSectionHeaderToLoad"/> |
62 | 68 | <dontSee selector="{{AdminCategoryProductsGridSection.rowProductName($$initialSimpleProduct.name$$)}}" stepKey="dontSeeProductNameOnCategoryCatalogPage"/>
|
63 | 69 | </test>
|
64 | 70 | </tests>
|
0 commit comments