|
124 | 124 | <actionGroup ref="StorefrontGoToCategoryPageActionGroup" stepKey="navigateToStorefrontCategoryAInitially">
|
125 | 125 | <argument name="categoryName" value="$createAnchorCategoryA.name$"/>
|
126 | 126 | </actionGroup>
|
| 127 | + <!-- Step 1:- Verify the category displays correct amount of products as 2 --> |
127 | 128 | <actionGroup ref="StorefrontVerifyCategoryContentActionGroup" stepKey="verifyCategoryAInitially">
|
128 | 129 | <argument name="description" value="{{CustomDynamicProductDescription.value}}"/>
|
129 | 130 | <argument name="metaTitle" value="MetaAtitle"/>
|
|
133 | 134 | <actionGroup ref="StorefrontGoToCategoryPageActionGroup" stepKey="navigateToStorefrontCategoryCInitially">
|
134 | 135 | <argument name="categoryName" value="$createNonAnchorCategoryC.name$"/>
|
135 | 136 | </actionGroup>
|
| 137 | + <!-- Step 2:- Verify the category displays correct amount of products as 1 --> |
136 | 138 | <actionGroup ref="StorefrontVerifyCategoryContentActionGroup" stepKey="verifyCategoryCInitially">
|
137 | 139 | <argument name="description" value="{{CustomDynamicProductDescription.value}}"/>
|
138 | 140 | <argument name="metaTitle" value="MetaCtitle"/>
|
|
144 | 146 | <argument name="childCategory" value="$createAnchorCategoryA.name$"/>
|
145 | 147 | <argument name="parentCategory" value="$createNonAnchorCategoryC.name$"/>
|
146 | 148 | </actionGroup>
|
| 149 | + <!-- Step 3:- Verify the category has moved successfully --> |
147 | 150 | <waitForElementVisible selector="{{AdminCategoryMessagesSection.SuccessMessage}}" stepKey="waitForSuccessMessageForFirstCategoryMove"/>
|
148 | 151 | <waitForText userInput="You moved the category." selector="{{AdminCategoryMessagesSection.SuccessMessage}}"
|
149 | 152 | stepKey="verifySuccessMessageForFirstCategoryMove"/>
|
150 | 153 | <!-- Step 4:- Open Admin > System > Index Management -->
|
151 | 154 | <actionGroup ref="AdminOpenIndexManagementPageActionGroup"
|
152 | 155 | stepKey="navigateToIndexManagementPageAfterFirstMove"/>
|
153 | 156 | <grabTextFrom selector="{{AdminIndexManagementSection.indexerStatus('Category Flat Data')}}" stepKey="grabCategoryFlatDataIndexerStatus"/>
|
| 157 | + <!-- Step 4:- Verify the category flat data indexer is ready --> |
154 | 158 | <assertEquals stepKey="assertCategoryFlatDataIndexerStatusToReady">
|
155 | 159 | <expectedResult type="string">READY</expectedResult>
|
156 | 160 | <actualResult type="string">$grabCategoryFlatDataIndexerStatus</actualResult>
|
|
160 | 164 | stepKey="navigateToStorefrontCategoryAAfterFirstMove">
|
161 | 165 | <argument name="categoryName" value="$createAnchorCategoryA.name$"/>
|
162 | 166 | </actionGroup>
|
| 167 | + <!-- Step 5:- Verify the category displays same amount of products as 2 --> |
163 | 168 | <waitForText userInput="2" selector="{{StorefrontCategoryMainSection.productCount}}"
|
164 | 169 | stepKey="verifyProductCountOnCategoryAAfterFirstMove"/>
|
165 | 170 | <actionGroup ref="StorefrontAssertCategoryNameIsShownInMenuActionGroup"
|
|
171 | 176 | stepKey="navigateToStorefrontCategoryCAfterFirstMove">
|
172 | 177 | <argument name="categoryName" value="$createNonAnchorCategoryC.name$"/>
|
173 | 178 | </actionGroup>
|
| 179 | + <!-- Step 6:- Verify the category displays correct amount of products as 1 --> |
174 | 180 | <waitForText userInput="1" selector="{{StorefrontCategoryMainSection.productCount}}"
|
175 | 181 | stepKey="verifyProductCountOnCategoryCAfterFirstMove"/>
|
176 | 182 | <actionGroup ref="StorefrontAssertCategoryNameIsShownInMenuActionGroup"
|
|
185 | 191 | stepKey="navigateToStorefrontCategoryCAfterFirstCron">
|
186 | 192 | <argument name="categoryName" value="$createNonAnchorCategoryC.name$"/>
|
187 | 193 | </actionGroup>
|
| 194 | + <!-- Step 8:- Verify the category displays correct amount of products as 1 --> |
188 | 195 | <waitForText userInput="1" selector="{{StorefrontCategoryMainSection.productCount}}"
|
189 | 196 | stepKey="verifyProductCountOnCategoryCAfterFirstCron"/>
|
190 | 197 | <actionGroup ref="StorefrontCheckPresentSubCategoryActionGroup"
|
|
199 | 206 | <argument name="childCategory" value="$createSubCategoryB.name$"/>
|
200 | 207 | <argument name="parentCategory" value="$createNonAnchorCategoryC.name$"/>
|
201 | 208 | </actionGroup>
|
| 209 | + <!-- Step 9:- Verify the category has moved successfully --> |
202 | 210 | <waitForElementVisible selector="{{AdminCategoryMessagesSection.SuccessMessage}}" stepKey="waitForSuccessMessageForSecondCategoryMove"/>
|
203 | 211 | <waitForText userInput="You moved the category." selector="{{AdminCategoryMessagesSection.SuccessMessage}}"
|
204 | 212 | stepKey="verifySuccessMessageForSecondCategoryMove"/>
|
|
214 | 222 | stepKey="navigateToStorefrontCategoryCAfterSecondMove">
|
215 | 223 | <argument name="categoryName" value="$createNonAnchorCategoryC.name$"/>
|
216 | 224 | </actionGroup>
|
| 225 | + <!-- Step 10:- Verify the category displays correct amount of products as 1 --> |
217 | 226 | <waitForText userInput="1" selector="{{StorefrontCategoryMainSection.productCount}}"
|
218 | 227 | stepKey="verifyProductCountOnCategoryCAfterSecondMove"/>
|
219 | 228 | <!-- Step 11:- Run cron twice to reindex -->
|
|
224 | 233 | stepKey="navigateToStorefrontCategoryCAfterSecondCron">
|
225 | 234 | <argument name="categoryName" value="$createNonAnchorCategoryC.name$"/>
|
226 | 235 | </actionGroup>
|
| 236 | + <!-- Step 12:- Verify the category displays correct amount of products as 1 --> |
227 | 237 | <waitForText userInput="1" selector="{{StorefrontCategoryMainSection.productCount}}"
|
228 | 238 | stepKey="verifyProductCountOnCategoryCAfterSecondCron"/>
|
| 239 | + <!-- Step 12:- Verify the category B has moved under category C successfully --> |
229 | 240 | <actionGroup ref="StorefrontCheckPresentSubCategoryActionGroup"
|
230 | 241 | stepKey="verifyCategoryBUnderCategoryCAfterSecondCron">
|
231 | 242 | <argument name="parenCategoryName" value="$createNonAnchorCategoryC.name$"/>
|
232 | 243 | <argument name="childCategoryName" value="$createSubCategoryB.name$"/>
|
233 | 244 | </actionGroup>
|
| 245 | + <!-- Step 12:- Verify the category A has moved under category B successfully --> |
234 | 246 | <actionGroup ref="StorefrontCheckPresentSubCategoryActionGroup"
|
235 | 247 | stepKey="verifyCategoryAUnderCategoryBAfterSecondCron">
|
236 | 248 | <argument name="parenCategoryName" value="$createSubCategoryB.name$"/>
|
|
253 | 265 | <!-- Step 16:- Open Admin > System > Index Management -->
|
254 | 266 | <actionGroup ref="AdminOpenIndexManagementPageActionGroup"
|
255 | 267 | stepKey="navigateToIndexManagementPageAfterStoreCreation"/>
|
| 268 | + <!-- Step 16:- Verify the category flat data indexer is ready --> |
256 | 269 | <grabTextFrom selector="{{AdminIndexManagementSection.indexerStatus('Category Flat Data')}}" stepKey="grabCategoryFlatDataIndexerStatusAfterStoreCreation"/>
|
257 | 270 | <assertEquals stepKey="assertCategoryFlatDataIndexerStatusToReadyAfterStoreCreation">
|
258 | 271 | <expectedResult type="string">READY</expectedResult>
|
|
275 | 288 | <actionGroup ref="AdminUpdateCategoryMetaInformationActionGroup" stepKey="changeCategoryMetaTitleOnStoreView">
|
276 | 289 | <argument name="metaTitle" value="$createSubCategoryB.name$"/>
|
277 | 290 | </actionGroup>
|
| 291 | + <!-- Step 17:- Verify the category settings on specific store view are saved --> |
278 | 292 | <actionGroup ref="ChangeSeoUrlKeyForSubCategoryActionGroup" stepKey="changeCategoryUrlKeyOnStoreView">
|
279 | 293 | <argument name="value" value="kategoriya-A"/>
|
280 | 294 | </actionGroup>
|
|
283 | 297 | <actionGroup ref="StorefrontSwitchStoreActionGroup" stepKey="switchToCustomStoreFirst">
|
284 | 298 | <argument name="storeName" value="{{customStore.name}}"/>
|
285 | 299 | </actionGroup>
|
286 |
| - <!-- Navigate to category A on the custom store and verify OLD content (English) --> |
| 300 | + <!-- Step 18:- Navigate to category A --> |
287 | 301 | <actionGroup ref="StorefrontGoToSubSubCategoryPageActionGroup"
|
288 | 302 | stepKey="navigateToStorefrontCategoryAOnCustomStore">
|
289 | 303 | <argument name="categoryName" value="$createNonAnchorCategoryC.name$"/>
|
290 | 304 | <argument name="subCategoryName" value="$createSubCategoryB.name$"/>
|
291 | 305 | <argument name="subSubCategoryName" value="$createAnchorCategoryA.name$"/>
|
292 | 306 | </actionGroup>
|
293 |
| - <!-- Verify OLD content (English) - before cron runs --> |
| 307 | + <!-- Step 18:- Verify OLD content (English) - before cron runs --> |
294 | 308 | <actionGroup ref="StorefrontVerifyCategoryContentActionGroup" stepKey="verifyOldContentOnCategoryAStoreView">
|
295 | 309 | <argument name="description" value="{{CustomDynamicProductDescription.value}}"/>
|
296 | 310 | <argument name="metaTitle" value="MetaAtitle"/>
|
|
0 commit comments