|
204 | 204 | <comment userInput="Create a new product" stepKey="commentCreateNewProduct"/> |
205 | 205 | <amOnPage url="{{AdminProductCreatePage.url(AddToDefaultSet.attributeSetId, 'simple')}}" stepKey="navigateToNewProduct"/> |
206 | 206 | <waitForPageLoad stepKey="waitForProductPage"/> |
| 207 | + <!-- Fill the remaining product fields accordingly --> |
| 208 | + <comment userInput="Fill the remaining product fields accordingly" stepKey="commentFillProductFields"/> |
| 209 | + <actionGroup ref="fillMainProductForm" stepKey="fillMainProductForm"> |
| 210 | + <argument name="product" value="SimpleProduct"/> |
| 211 | + </actionGroup> |
207 | 212 | <!-- Set background colour of row for custom attribute --> |
208 | 213 | <comment userInput="Set background colour of row for custom attribute" stepKey="commentSetBackgroundColor"/> |
| 214 | + <scrollToTopOfPage stepKey="scrollToTop"/> |
209 | 215 | <actionGroup ref="openPageBuilderForAttribute" stepKey="openPageBuilderForAttribute"> |
210 | 216 | <argument name="attributeCode" value="$$createWysiwygAttribute.attribute_code$$"/> |
211 | 217 | </actionGroup> |
|
218 | 224 | <actionGroup ref="saveEditPanelSettingsFullScreen" stepKey="saveEditPanelSettings"/> |
219 | 225 | <click selector="{{PageBuilderStage.exitFullScreen}}" stepKey="exitPageBuilderFullScreen" /> |
220 | 226 | <waitForPageLoad stepKey="waitForPageLoadExitFullScreen"/> |
| 227 | + <!-- Save product, before editing row --> |
| 228 | + <comment userInput="Save product, before editing row" stepKey="commentSaveProductAfterAttribute"/> |
| 229 | + <click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="saveProductAfterAttribute"/> |
| 230 | + <waitForPageLoad stepKey="waitForProductSaveAfterAttribute"/> |
| 231 | + <waitForElementVisible selector="{{AdminProductMessagesSection.successMessage}}" stepKey="assertSaveMessageSuccessAfterAttribute"/> |
221 | 232 | <!-- Set background colour of row for description --> |
222 | 233 | <comment userInput="Set background colour of row for description" stepKey="commentSetDescriptionRowBackgroundColor"/> |
223 | 234 | <click selector="{{AdminProductContentSection.sectionHeader}}" stepKey="openContentSection"/> |
|
233 | 244 | <actionGroup ref="saveEditPanelSettingsFullScreen" stepKey="saveDescriptionEditPanelSettings"/> |
234 | 245 | <click selector="{{PageBuilderStage.exitFullScreen}}" stepKey="exitDescriptionPageBuilderFullScreen" /> |
235 | 246 | <waitForPageLoad stepKey="waitForDescriptionPageLoadExitFullScreen"/> |
236 | | - <!-- Fill the remaining product fields accordingly --> |
237 | | - <comment userInput="Fill the remaining product fields accordingly" stepKey="commentFillProductFields"/> |
238 | | - <actionGroup ref="fillMainProductForm" stepKey="fillMainProductForm"> |
239 | | - <argument name="product" value="SimpleProduct"/> |
240 | | - </actionGroup> |
241 | 247 | <!-- Save product --> |
242 | 248 | <comment userInput="Save product" stepKey="commentSaveProduct"/> |
243 | 249 | <click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="saveProduct"/> |
|
350 | 356 | <comment userInput="Create a new product" stepKey="commentCreateNewProduct"/> |
351 | 357 | <amOnPage url="{{AdminProductCreatePage.url(AddToDefaultSet.attributeSetId, 'simple')}}" stepKey="navigateToNewProduct"/> |
352 | 358 | <waitForPageLoad stepKey="waitForProductPage"/> |
| 359 | + <!-- Fill the remaining product fields accordingly --> |
| 360 | + <comment userInput="Fill the remaining product fields accordingly" stepKey="commentFillProductFields"/> |
| 361 | + <actionGroup ref="fillMainProductForm" stepKey="fillMainProductForm"> |
| 362 | + <argument name="product" value="SimpleProduct"/> |
| 363 | + </actionGroup> |
353 | 364 | <!-- Set background colour of row for our first custom attribute --> |
354 | 365 | <comment userInput="Set background colour of row for our first custom attribute" stepKey="commentSetBackgroundColor"/> |
| 366 | + <scrollToTopOfPage stepKey="scrollToTopOfPage"/> |
355 | 367 | <actionGroup ref="openPageBuilderForAttribute" stepKey="openPageBuilderForAttribute1"> |
356 | 368 | <argument name="attributeCode" value="$$createPageBuilderAttribute1.attribute_code$$"/> |
357 | 369 | </actionGroup> |
|
364 | 376 | <actionGroup ref="saveEditPanelSettingsFullScreen" stepKey="saveEditPanelSettings"/> |
365 | 377 | <click selector="{{PageBuilderStage.exitFullScreen}}" stepKey="exitPageBuilderFullScreen" /> |
366 | 378 | <waitForPageLoad stepKey="waitForPageLoadExitFullScreen"/> |
| 379 | + <!-- Save product, after first attribute --> |
| 380 | + <comment userInput="Save product, after first attribute" stepKey="commentSaveProductAfterAttribute"/> |
| 381 | + <click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="saveProductAfterAttribute"/> |
| 382 | + <waitForPageLoad stepKey="waitForPageLoadSaveProductAfterAttribute"/> |
| 383 | + <waitForElementVisible selector="{{AdminProductMessagesSection.successMessage}}" stepKey="assertSaveMessageSuccessAfterAttribute"/> |
367 | 384 | <!-- Set background colour of row for our second custom attribute --> |
368 | 385 | <comment userInput="Set background colour of row for our second custom attribute" stepKey="commentSetBackgroundColor1"/> |
369 | 386 | <actionGroup ref="openPageBuilderForAttribute" stepKey="openPageBuilderForAttribute2"> |
|
378 | 395 | <actionGroup ref="saveEditPanelSettingsFullScreen" stepKey="saveEditPanelSettings1"/> |
379 | 396 | <click selector="{{PageBuilderStage.exitFullScreen}}" stepKey="exitPageBuilderFullScreen1" /> |
380 | 397 | <waitForPageLoad stepKey="waitForPageLoadExitFullScreen1"/> |
381 | | - <!-- Fill the remaining product fields accordingly --> |
382 | | - <comment userInput="Fill the remaining product fields accordingly" stepKey="commentFillProductFields"/> |
383 | | - <actionGroup ref="fillMainProductForm" stepKey="fillMainProductForm"> |
384 | | - <argument name="product" value="SimpleProduct"/> |
385 | | - </actionGroup> |
386 | 398 | <!-- Save product --> |
387 | 399 | <comment userInput="Save product" stepKey="commentSaveProduct"/> |
388 | 400 | <click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="saveProduct"/> |
|
475 | 487 | <actionGroup ref="saveEditPanelSettingsFullScreen" stepKey="saveEditPanelSettings"/> |
476 | 488 | <click selector="{{PageBuilderStage.exitFullScreen}}" stepKey="exitPageBuilderFullScreen" /> |
477 | 489 | <waitForPageLoad stepKey="waitForPageLoadExitFullScreen"/> |
| 490 | + <!-- Save product after custom attribute --> |
| 491 | + <comment userInput="Save product after custom attribute" stepKey="saveProductAfterCustomAttribute"/> |
| 492 | + <click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="saveProductAfterAttribute"/> |
| 493 | + <waitForPageLoad stepKey="waitForPageLoadSaveProductAfterAttribute"/> |
| 494 | + <waitForElementVisible selector="{{AdminProductMessagesSection.successMessage}}" stepKey="assertSaveMessageSuccessAfterAttribute"/> |
478 | 495 | <!-- Add PageBuilder description --> |
479 | 496 | <comment userInput="Add PageBuilder description" stepKey="commentAddDescription"/> |
480 | 497 | <conditionalClick selector="{{AdminProductContentSection.sectionHeader}}" dependentSelector="{{AdminProductContentSection.sectionHeaderIfNotShowing}}" visible="false" stepKey="openContentSection"/> |
|
0 commit comments