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