|
198 | 198 | <comment userInput="Create a new product" stepKey="commentCreateNewProduct"/>
|
199 | 199 | <amOnPage url="{{AdminProductCreatePage.url(AddToDefaultSet.attributeSetId, 'simple')}}" stepKey="navigateToNewProduct"/>
|
200 | 200 | <waitForPageLoad stepKey="waitForProductPage"/>
|
| 201 | + <!-- Set background colour of row for custom attribute --> |
| 202 | + <comment userInput="Set background colour of row for custom attribute" stepKey="commentSetBackgroundColor"/> |
| 203 | + <actionGroup ref="openPageBuilderForProductAttribute" stepKey="openPageBuilderForProductAttribute"> |
| 204 | + <argument name="attributeCode" value="$$createWysiwygAttribute.attribute_code$$"/> |
| 205 | + </actionGroup> |
| 206 | + <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage"> |
| 207 | + <argument name="contentType" value="PageBuilderRowContentType"/> |
| 208 | + </actionGroup> |
| 209 | + <actionGroup ref="fillSlideOutPanelFieldGeneral" stepKey="enterBackgroundColor"> |
| 210 | + <argument name="property" value="PageBuilderBackgroundColor_Plaintext_Green"/> |
| 211 | + </actionGroup> |
| 212 | + <actionGroup ref="saveEditPanelSettingsFullScreen" stepKey="saveEditPanelSettings"/> |
| 213 | + <click selector="{{PageBuilderStage.exitFullScreen}}" stepKey="exitPageBuilderFullScreen" /> |
| 214 | + <waitForPageLoad stepKey="waitForPageLoadExitFullScreen"/> |
201 | 215 | <!-- Set background colour of row for description -->
|
202 | 216 | <comment userInput="Set background colour of row for description" stepKey="commentSetDescriptionRowBackgroundColor"/>
|
203 | 217 | <click selector="{{AdminProductContentSection.sectionHeader}}" stepKey="openContentSection"/>
|
204 |
| - <waitForElementVisible selector="{{PageBuilderProductAttribute.PageBuilderBtn('description')}}" stepKey="seeDescriptionPageBuilderButton"/> |
205 |
| - <click selector="{{PageBuilderProductAttribute.PageBuilderBtn('description')}}" stepKey="enableDescriptionPageBuilder"/> |
206 |
| - <waitForElementVisible selector="{{PageBuilderPanel.generalGroup}}" stepKey="waiForDescriptionPageBuilderVisible" /> |
| 218 | + <actionGroup ref="openPageBuilderForProductAttribute" stepKey="openPageBuilderForDescription"> |
| 219 | + <argument name="attributeCode" value="description"/> |
| 220 | + </actionGroup> |
207 | 221 | <actionGroup ref="openPageBuilderEditPanel" stepKey="openDescriptionEditMenuOnStage">
|
208 | 222 | <argument name="contentType" value="PageBuilderRowContentType"/>
|
209 | 223 | </actionGroup>
|
210 | 224 | <actionGroup ref="fillSlideOutPanelFieldGeneral" stepKey="enterDescriptionRowBackgroundColor">
|
211 | 225 | <argument name="property" value="PageBuilderBackgroundColor_HSV_Orange"/>
|
212 | 226 | </actionGroup>
|
213 | 227 | <actionGroup ref="saveEditPanelSettingsFullScreen" stepKey="saveDescriptionEditPanelSettings"/>
|
214 |
| - <waitForPageLoad stepKey="waitForDescriptionSavePanelClose"/> |
215 | 228 | <click selector="{{PageBuilderStage.exitFullScreen}}" stepKey="exitDescriptionPageBuilderFullScreen" />
|
216 | 229 | <waitForPageLoad stepKey="waitForDescriptionPageLoadExitFullScreen"/>
|
217 |
| - <!-- Set background colour of row for custom attribute --> |
218 |
| - <comment userInput="Set background colour of row for custom attribute" stepKey="commentSetBackgroundColor"/> |
219 |
| - <waitForElementVisible selector="{{PageBuilderProductAttribute.PageBuilderBtn($$createWysiwygAttribute.attribute_code$$)}}" stepKey="seePagebuilderBtn"/> |
220 |
| - <click selector="{{PageBuilderProductAttribute.PageBuilderBtn($$createWysiwygAttribute.attribute_code$$)}}" stepKey="enablePageBuilder"/> |
221 |
| - <waitForElementVisible selector="{{PageBuilderPanel.generalGroup}}" stepKey="waiForPageBuilderVisible" /> |
222 |
| - <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage"> |
223 |
| - <argument name="contentType" value="PageBuilderRowContentType"/> |
224 |
| - </actionGroup> |
225 |
| - <actionGroup ref="fillSlideOutPanelFieldGeneral" stepKey="enterBackgroundColor"> |
226 |
| - <argument name="property" value="PageBuilderBackgroundColor_HSV_Orange"/> |
227 |
| - </actionGroup> |
228 |
| - <actionGroup ref="saveEditPanelSettingsFullScreen" stepKey="saveEditPanelSettings"/> |
229 |
| - <waitForPageLoad stepKey="waitForSavePanelClose"/> |
230 |
| - <click selector="{{PageBuilderStage.exitFullScreen}}" stepKey="exitPageBuilderFullScreen" /> |
231 |
| - <waitForPageLoad stepKey="waitForPageLoadExitFullScreen"/> |
232 | 230 | <!-- Fill the remaining product fields accordingly -->
|
233 | 231 | <comment userInput="Fill the remaining product fields accordingly" stepKey="commentFillProductFields"/>
|
234 | 232 | <actionGroup ref="fillMainProductForm" stepKey="fillMainProductForm">
|
|
348 | 346 | <waitForPageLoad stepKey="waitForProductPage"/>
|
349 | 347 | <!-- Set background colour of row for our first custom attribute -->
|
350 | 348 | <comment userInput="Set background colour of row for our first custom attribute" stepKey="commentSetBackgroundColor"/>
|
351 |
| - <waitForElementVisible selector="{{PageBuilderProductAttribute.PageBuilderBtn($$createPageBuilderAttribute1.attribute_code$$)}}" stepKey="seePagebuilderBtn"/> |
352 |
| - <click selector="{{PageBuilderProductAttribute.PageBuilderBtn($$createPageBuilderAttribute1.attribute_code$$)}}" stepKey="enablePageBuilder"/> |
353 |
| - <waitForElementVisible selector="{{PageBuilderPanel.generalGroup}}" stepKey="waiForPageBuilderVisible" /> |
| 349 | + <actionGroup ref="openPageBuilderForProductAttribute" stepKey="openPageBuilderForProductAttribute1"> |
| 350 | + <argument name="attributeCode" value="$$createPageBuilderAttribute1.attribute_code$$"/> |
| 351 | + </actionGroup> |
354 | 352 | <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage">
|
355 | 353 | <argument name="contentType" value="PageBuilderRowContentType"/>
|
356 | 354 | </actionGroup>
|
357 | 355 | <actionGroup ref="fillSlideOutPanelFieldGeneral" stepKey="enterBackgroundColor">
|
358 | 356 | <argument name="property" value="PageBuilderBackgroundColor_HSV_Orange"/>
|
359 | 357 | </actionGroup>
|
360 | 358 | <actionGroup ref="saveEditPanelSettingsFullScreen" stepKey="saveEditPanelSettings"/>
|
361 |
| - <waitForPageLoad stepKey="waitForSavePanelClose"/> |
362 | 359 | <click selector="{{PageBuilderStage.exitFullScreen}}" stepKey="exitPageBuilderFullScreen" />
|
363 | 360 | <waitForPageLoad stepKey="waitForPageLoadExitFullScreen"/>
|
364 | 361 | <!-- Set background colour of row for our second custom attribute -->
|
365 | 362 | <comment userInput="Set background colour of row for our second custom attribute" stepKey="commentSetBackgroundColor1"/>
|
366 |
| - <waitForElementVisible selector="{{PageBuilderProductAttribute.PageBuilderBtn($$createPageBuilderAttribute2.attribute_code$$)}}" stepKey="seePagebuilderBtn1"/> |
367 |
| - <click selector="{{PageBuilderProductAttribute.PageBuilderBtn($$createPageBuilderAttribute2.attribute_code$$)}}" stepKey="enablePageBuilder1"/> |
368 |
| - <waitForElementVisible selector="{{PageBuilderPanel.generalGroup}}" stepKey="waiForPageBuilderVisible1" /> |
| 363 | + <actionGroup ref="openPageBuilderForProductAttribute" stepKey="openPageBuilderForProductAttribute2"> |
| 364 | + <argument name="attributeCode" value="$$createPageBuilderAttribute2.attribute_code$$"/> |
| 365 | + </actionGroup> |
369 | 366 | <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage1">
|
370 | 367 | <argument name="contentType" value="PageBuilderRowContentType"/>
|
371 | 368 | </actionGroup>
|
372 | 369 | <actionGroup ref="fillSlideOutPanelFieldGeneral" stepKey="enterBackgroundColor1">
|
373 | 370 | <argument name="property" value="PageBuilderBackgroundColor_Plaintext_Green"/>
|
374 | 371 | </actionGroup>
|
375 | 372 | <actionGroup ref="saveEditPanelSettingsFullScreen" stepKey="saveEditPanelSettings1"/>
|
376 |
| - <waitForPageLoad stepKey="waitForSavePanelClose1"/> |
377 | 373 | <click selector="{{PageBuilderStage.exitFullScreen}}" stepKey="exitPageBuilderFullScreen1" />
|
378 | 374 | <waitForPageLoad stepKey="waitForPageLoadExitFullScreen1"/>
|
379 | 375 | <!-- Fill the remaining product fields accordingly -->
|
|
0 commit comments