|
10 | 10 | xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd">
|
11 | 11 | <actionGroup name="openPageBuilderEditPanelSmallByIndex">
|
12 | 12 | <arguments>
|
13 |
| - <argument name="contentBlockType" defaultValue=""/> |
14 |
| - <argument name="contentBlockIndex" defaultValue="1" type="string"/> |
| 13 | + <argument name="contentType" defaultValue=""/> |
| 14 | + <argument name="contentTypeIndex" defaultValue="1" type="string"/> |
15 | 15 | </arguments>
|
16 |
| - <waitForElementVisible time="20" selector="{{PageBuilderActionsSection.contentBlockInStageByIndex(contentBlockType.role, contentBlockIndex)}}" stepKey="waitForButtonElement"/> |
17 |
| - <click selector="{{PageBuilderActionsSection.contentBlockInStageByIndex(contentBlockType.role, contentBlockIndex)}}" stepKey="clickButtonElement"/> |
| 16 | + <waitForElementVisible time="20" selector="{{PageBuilderActionsSection.contentTypeInStageByIndex(contentType.role, contentTypeIndex)}}" stepKey="waitForButtonElement"/> |
| 17 | + <click selector="{{PageBuilderActionsSection.contentTypeInStageByIndex(contentType.role, contentTypeIndex)}}" stepKey="clickButtonElement"/> |
18 | 18 | <waitForPageLoad stepKey="waitForPageLoad"/>
|
19 |
| - <waitForElementVisible time="10" selector="{{PageBuilderActionsSection.contentBlockOptionsMenuByIndex(contentBlockType.role, contentBlockIndex)}}" stepKey="waitForOptions"/> |
20 |
| - <waitForElementVisible selector="{{PageBuilderActionsSection.contentBlockEditByIndex(contentBlockType.role, contentBlockIndex)}}" stepKey="waitForEditButton"/> |
21 |
| - <click selector="{{PageBuilderActionsSection.contentBlockEditByIndex(contentBlockType.role, contentBlockIndex)}}" stepKey="clickEditButton"/> |
| 19 | + <waitForElementVisible time="10" selector="{{PageBuilderActionsSection.contentTypeOptionsMenuByIndex(contentType.role, contentTypeIndex)}}" stepKey="waitForOptions"/> |
| 20 | + <waitForElementVisible selector="{{PageBuilderActionsSection.contentTypeEditByIndex(contentType.role, contentTypeIndex)}}" stepKey="waitForEditButton"/> |
| 21 | + <click selector="{{PageBuilderActionsSection.contentTypeEditByIndex(contentType.role, contentTypeIndex)}}" stepKey="clickEditButton"/> |
22 | 22 | <waitForElementVisible time="5" selector="{{PageBuilderActionsSection.editForm}}" stepKey="waitForEditForm"/>
|
23 | 23 | <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear"/>
|
24 |
| - <see userInput="Edit {{contentBlockType.name}}" selector="{{PageBuilderActionsSection.editFormTitle}}" stepKey="seeContentBlockNameInEditFormTitle"/> |
| 24 | + <see userInput="Edit {{contentType.name}}" selector="{{PageBuilderActionsSection.editFormTitle}}" stepKey="seeContentTypeNameInEditFormTitle"/> |
25 | 25 | <waitForPageLoad stepKey="waitForPageLoad2"/>
|
26 | 26 | </actionGroup>
|
27 | 27 | <actionGroup name="addButton">
|
|
30 | 30 | </arguments>
|
31 | 31 | <comment userInput="Adding Button" stepKey="comment"/>
|
32 | 32 | <executeJS function="return Math.round(document.getElementsByClassName('pagebuilder-button-item').length+1)" stepKey="initialNumberOfButtonsPlusOne"/>
|
33 |
| - <moveMouseOver selector="{{PageBuilderActionsSection.contentBlockInStageByIndex(PageBuilderButtonsContentBlock.role, buttonGroupIndex)}}" stepKey="mouseOverButtonsGroup"/> |
| 33 | + <moveMouseOver selector="{{PageBuilderActionsSection.contentTypeInStageByIndex(PageBuilderButtonsContentType.role, buttonGroupIndex)}}" stepKey="mouseOverButtonsGroup"/> |
34 | 34 | <waitForPageLoad stepKey="waitForPageLoad"/>
|
35 |
| - <waitForElementVisible time="10" selector="{{PageBuilderActionsSection.contentBlockOptionsMenu(PageBuilderButtonsContentBlock.role)}}" stepKey="waitForOptionsMenu"/> |
| 35 | + <waitForElementVisible time="10" selector="{{PageBuilderActionsSection.contentTypeOptionsMenu(PageBuilderButtonsContentType.role)}}" stepKey="waitForOptionsMenu"/> |
36 | 36 | <waitForElementVisible time="10" selector="{{ButtonGroupOnStage.addNewButtonItemOption(buttonGroupIndex)}}" stepKey="seeAddButton"/>
|
37 | 37 | <click selector="{{ButtonGroupOnStage.addNewButtonItemOption(buttonGroupIndex)}}" stepKey="clickAddButton"/>
|
38 | 38 | <waitForPageLoad stepKey="waitForPageLoad2"/>
|
|
42 | 42 | <actualResult type="variable">numberOfButtonsAfterAdd</actualResult>
|
43 | 43 | </assertEquals>
|
44 | 44 | </actionGroup>
|
45 |
| - <actionGroup name="removeContentBlockFromStageSmallByIndex"> |
| 45 | + <actionGroup name="removeContentTypeFromStageSmallByIndex"> |
46 | 46 | <arguments>
|
47 |
| - <argument name="contentBlockType" defaultValue=""/> |
48 |
| - <argument name="contentBlockIndex" defaultValue="2" type="string"/> |
| 47 | + <argument name="contentType" defaultValue=""/> |
| 48 | + <argument name="contentTypeIndex" defaultValue="2" type="string"/> |
49 | 49 | </arguments>
|
50 |
| - <waitForElementVisible time="10" selector="{{PageBuilderActionsSection.contentBlockInStageByIndex(contentBlockType.role, contentBlockIndex)}}" stepKey="waitForButtonElement"/> |
51 |
| - <click selector="{{PageBuilderActionsSection.contentBlockInStageByIndex(contentBlockType.role, contentBlockIndex)}}" stepKey="clickButtonElement"/> |
| 50 | + <waitForElementVisible time="10" selector="{{PageBuilderActionsSection.contentTypeInStageByIndex(contentType.role, contentTypeIndex)}}" stepKey="waitForButtonElement"/> |
| 51 | + <click selector="{{PageBuilderActionsSection.contentTypeInStageByIndex(contentType.role, contentTypeIndex)}}" stepKey="clickButtonElement"/> |
52 | 52 | <waitForPageLoad stepKey="waitForPageLoad"/>
|
53 |
| - <waitForElementVisible time="10" selector="{{PageBuilderActionsSection.contentBlockOptionsMenuByIndex(contentBlockType.role, contentBlockIndex)}}" stepKey="waitForOptions"/> |
54 |
| - <waitForElementVisible time="10" selector="{{PageBuilderActionsSection.contentBlockRemoveByIndex(contentBlockType.role, contentBlockIndex)}}" stepKey="waitForRemoveButton"/> |
55 |
| - <click selector="{{PageBuilderActionsSection.contentBlockRemoveByIndex(contentBlockType.role, contentBlockIndex)}}" stepKey="clickRemoveContentBlock"/> |
| 53 | + <waitForElementVisible time="10" selector="{{PageBuilderActionsSection.contentTypeOptionsMenuByIndex(contentType.role, contentTypeIndex)}}" stepKey="waitForOptions"/> |
| 54 | + <waitForElementVisible time="10" selector="{{PageBuilderActionsSection.contentTypeRemoveByIndex(contentType.role, contentTypeIndex)}}" stepKey="waitForRemoveButton"/> |
| 55 | + <click selector="{{PageBuilderActionsSection.contentTypeRemoveByIndex(contentType.role, contentTypeIndex)}}" stepKey="clickRemoveContentType"/> |
56 | 56 | <waitForPageLoad stepKey="waitForPageLoad2"/>
|
57 | 57 | </actionGroup>
|
58 | 58 | <actionGroup name="validateButtonItemContent">
|
|
0 commit comments