|
63 | 63 | </actionGroup>
|
64 | 64 |
|
65 | 65 | <!-- Create simple product with categories created in create data -->
|
66 |
| - <amOnPage url="{{AdminProductIndexPage.url}}" stepKey="openProductCatalogPage"/> |
67 |
| - <waitForPageLoad stepKey="waitForProductCatalogPage"/> |
| 66 | + <actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="openProductsGrid"/> |
68 | 67 | <actionGroup ref="FilterProductGridBySkuActionGroup" stepKey="filterProduct">
|
69 | 68 | <argument name="product" value="$$createProduct$$"/>
|
70 | 69 | </actionGroup>
|
71 |
| - <click selector="{{AdminProductGridFilterSection.nthRow('1')}}" stepKey="clickFirstRowOfCreatedSimpleProduct"/> |
72 |
| - <waitForPageLoad stepKey="waitUntilProductIsOpened"/> |
73 |
| - <click selector="{{AdminProductFormSection.categoriesDropdown}}" stepKey="clickCategoriesDropDown"/> |
74 |
| - <fillField selector="{{AdminProductFormSection.searchCategory}}" userInput="$$rootCategory.name$$" stepKey="fillSearchForInitialCategory"/> |
75 |
| - <waitForPageLoad stepKey="waitForCategory1"/> |
76 |
| - <click selector="{{AdminProductFormSection.selectCategory($$rootCategory.name$$)}}" stepKey="unselectInitialCategory"/> |
77 |
| - <fillField selector="{{AdminProductFormSection.searchCategory}}" userInput="$$category.name$$" stepKey="fillSearchCategory"/> |
78 |
| - <waitForPageLoad stepKey="waitForCategory2"/> |
79 |
| - <click selector="{{AdminProductFormSection.selectCategory($$category.name$$)}}" stepKey="clickOnCategory"/> |
80 |
| - <click selector="{{AdminProductFormSection.done}}" stepKey="clickOnDoneAdvancedCategorySelect"/> |
81 |
| - <scrollToTopOfPage stepKey="scrollToTopOfAdminProductFormSection"/> |
82 |
| - <click selector="{{AdminProductFormSection.save}}" stepKey="clickSaveButton"/> |
83 |
| - <waitForPageLoad stepKey="waitForSimpleProductSaved"/> |
| 70 | + <actionGroup ref="OpenProductForEditByClickingRowXColumnYInProductGridActionGroup" stepKey="openProduct"/> |
| 71 | + <actionGroup ref="SetCategoryByNameActionGroup" stepKey="unselectInitialCategory"> |
| 72 | + <argument name="categoryName" value="$$rootCategory.name$$"/> |
| 73 | + </actionGroup> |
| 74 | + <actionGroup ref="AdminSubmitCategoriesPopupActionGroup" stepKey="pressDoneButton"/> |
| 75 | + <actionGroup ref="SetCategoryByNameActionGroup" stepKey="setNewCategory"> |
| 76 | + <argument name="categoryName" value="$$category.name$$"/> |
| 77 | + </actionGroup> |
| 78 | + <actionGroup ref="AdminSubmitCategoriesPopupActionGroup" stepKey="clickOnDoneButton"/> |
| 79 | + <actionGroup ref="SaveProductFormNoSuccessCheckActionGroup" stepKey="saveProduct"/> |
| 80 | + |
84 | 81 | <!-- Verify customer see success message -->
|
85 |
| - <see selector="{{AdminProductFormSection.successMessage}}" userInput="You saved the product." stepKey="seeAssertSimpleProductSaveSuccessMessage"/> |
| 82 | + <actionGroup ref="AssertMessageInAdminPanelActionGroup" stepKey="seeAssertSimpleProductSaveSuccessMessage"> |
| 83 | + <argument name="message" value="You saved the product."/> |
| 84 | + </actionGroup> |
86 | 85 |
|
87 | 86 | <!-- Grab category Id -->
|
88 | 87 | <actionGroup ref="OpenCategoryFromCategoryTreeActionGroup" stepKey="grabCategoryId">
|
|
95 | 94 | <argument name="redirectType" value="No"/>
|
96 | 95 | <argument name="targetPath" value="catalog/category/view/id/{$categoryId}"/>
|
97 | 96 | </actionGroup>
|
98 |
| - <see selector="{{AdminUrlRewriteIndexSection.gridCellByColumnRowNumber('1', 'Store View')}}" userInput="{{customStoreGroup.name}}" stepKey="seeStoreValueForCategoryId"/> |
99 |
| - <see selector="{{AdminUrlRewriteIndexSection.gridCellByColumnRowNumber('1', 'Store View')}}" userInput="{{customStoreEN.name}}" stepKey="seeStoreViewValueForCategoryId"/> |
| 97 | + |
| 98 | + <actionGroup ref="AssertAdminStoreValueIsSetForUrlRewriteActionGroup" stepKey="seeStoreValueForCategoryId"> |
| 99 | + <argument name="storeValue" value="{{customStoreGroup.name}}"/> |
| 100 | + </actionGroup> |
| 101 | + <actionGroup ref="AssertAdminStoreValueIsSetForUrlRewriteActionGroup" stepKey="seeStoreViewValueForCategoryId"> |
| 102 | + <argument name="storeValue" value="{{customStoreEN.name}}"/> |
| 103 | + </actionGroup> |
100 | 104 |
|
101 | 105 | <!-- Grab product Id -->
|
102 | 106 | <actionGroup ref="FilterAndSelectProductActionGroup" stepKey="grabProductId">
|
|
109 | 113 | <argument name="redirectType" value="No"/>
|
110 | 114 | <argument name="targetPath" value="catalog/product/view/id/{$productId}"/>
|
111 | 115 | </actionGroup>
|
112 |
| - <see selector="{{AdminUrlRewriteIndexSection.gridCellByColumnRowNumber('1', 'Store View')}}" userInput="{{customStore.name}}" stepKey="seeStoreValueForProductId"/> |
113 |
| - <see selector="{{AdminUrlRewriteIndexSection.gridCellByColumnRowNumber('1', 'Store View')}}" userInput="{{storeViewData.name}}" stepKey="seeStoreViewValueForProductId"/> |
| 116 | + |
| 117 | + <actionGroup ref="AssertAdminStoreValueIsSetForUrlRewriteActionGroup" stepKey="seeStoreValueForProductId"> |
| 118 | + <argument name="storeValue" value="{{customStore.name}}"/> |
| 119 | + </actionGroup> |
| 120 | + <actionGroup ref="AssertAdminStoreValueIsSetForUrlRewriteActionGroup" stepKey="seeStoreViewValueForProductId"> |
| 121 | + <argument name="storeValue" value="{{storeViewData.name}}"/> |
| 122 | + </actionGroup> |
114 | 123 | </test>
|
115 | 124 | </tests>
|
0 commit comments