|
60 | 60 | <actionGroup name="goToMediaStorageFromStage">
|
61 | 61 | <arguments>
|
62 | 62 | <argument name="contentType"/>
|
63 |
| - <argument name="section"/> |
64 |
| - <argument name="offsetXCoordinate" defaultValue="null" type="string"/> |
65 |
| - <argument name="offsetYCoordinate" defaultValue="null" type="string"/> |
| 63 | + <argument name="index" defaultValue="1" type="string"/> |
| 64 | + <argument name="x" defaultValue="null" type="string"/> |
| 65 | + <argument name="y" defaultValue="null" type="string"/> |
66 | 66 | </arguments>
|
67 | 67 | <comment userInput="Hover over content type in stage and click Select From Gallery button" stepKey="commentHover"/>
|
68 |
| - <moveMouseOver selector="{{PageBuilderStage.contentTypeInStage(contentType.role)}}" x="{{offsetXCoordinate}}" y="{{offsetYCoordinate}}" stepKey="onMouseOverImageContentTypeStage"/> |
69 |
| - <waitForElementVisible selector="{{section.selectFromGalleryImageBtn}}" stepKey="seeSelectFromGalleryBtn2" /> |
70 |
| - <click selector="{{section.selectFromGalleryImageBtn}}" stepKey="clickSelectFromGalleryBtn1" /> |
| 68 | + <moveMouseOver selector="{{PageBuilderStage.contentTypeInStageByIndex(contentType.role, index)}}" x="{{x}}" y="{{y}}" stepKey="onMouseOverImageContentTypeStage"/> |
| 69 | + <waitForElementVisible selector="{{PageBuilderStage.onHoverSelectFromGalleryButton(contentType.role, index)}}" stepKey="seeSelectFromGalleryBtn2" /> |
| 70 | + <click selector="{{PageBuilderStage.onHoverSelectFromGalleryButton(contentType.role, index)}}" stepKey="clickSelectFromGalleryBtn1" /> |
| 71 | + <waitForPageLoad stepKey="waitForPageLoad"/> |
| 72 | + </actionGroup> |
| 73 | + <actionGroup name="verifySelectFromGalleryButtonWorks"> |
| 74 | + <arguments> |
| 75 | + <argument name="contentType"/> |
| 76 | + <argument name="index" defaultValue="1" type="string"/> |
| 77 | + <argument name="x" defaultValue="null" type="string"/> |
| 78 | + <argument name="y" defaultValue="null" type="string"/> |
| 79 | + </arguments> |
| 80 | + <comment userInput="verifySelectFromGalleryButtonWorks" stepKey="comment"/> |
| 81 | + <moveMouseOver selector="{{PageBuilderStage.contentTypeInStageByIndex(contentType.role, index)}}" x="{{x}}" y="{{y}}" stepKey="mouseOverContentType"/> |
71 | 82 | <waitForPageLoad stepKey="waitForPageLoad"/>
|
| 83 | + <waitForElementVisible selector="{{PageBuilderStage.onHoverSelectFromGalleryButton(contentType.role, index)}}" stepKey="waitForSelectFromGallery"/> |
| 84 | + <click selector="{{PageBuilderStage.onHoverSelectFromGalleryButton(contentType.role, index)}}" stepKey="clickSelectFromGallery"/> |
| 85 | + <waitForPageLoad stepKey="waitForPageLoad1"/> |
| 86 | + <waitForElementVisible selector="{{MediaGallerySection.InsertFile}}" stepKey="waitForAddSelectedFilesButton"/> |
| 87 | + <seeElement selector="{{MediaGallerySection.InsertFile}}" stepKey="seeAddSelectedFilesButton"/> |
| 88 | + <click selector="{{MediaGallerySection.CancelBtn}}" stepKey="clickCancelButton"/> |
| 89 | + <waitForPageLoad stepKey="waitForPageLoad2"/> |
72 | 90 | </actionGroup>
|
73 | 91 | <actionGroup name="uploadImageToContentTypeFromStage">
|
74 | 92 | <arguments>
|
|
80 | 98 | <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear"/>
|
81 | 99 | <waitForElementVisible selector="{{PageBuilderStage.imageSource(property.fileName)}}" stepKey="waitForMainImageSource1"/>
|
82 | 100 | </actionGroup>
|
| 101 | + <actionGroup name="inlineEditWYSIWYGFromStage"> |
| 102 | + <arguments> |
| 103 | + <argument name="contentType"/> |
| 104 | + <argument name="content" type="string"/> |
| 105 | + <argument name="index" defaultValue="1" type="string"/> |
| 106 | + </arguments> |
| 107 | + <click selector="{{PageBuilderStage.inlineWYSIWYGEditor(contentType.role, index)}}" stepKey="focusOnEditorArea"/> |
| 108 | + <waitForElementVisible selector="{{PageBuilderStage.inlineWYSIWYGEditorPanel(contentType.role, index)}}" stepKey="waitForEditorPanel"/> |
| 109 | + <fillField selector="{{PageBuilderStage.inlineWYSIWYGEditor(contentType.role, index)}}" userInput="{{content}}" stepKey="enterContentIntoEditor"/> |
| 110 | + <click selector="{{PageBuilderPanel.searchPanel}}" stepKey="loseFocusFromEditor"/> |
| 111 | + </actionGroup> |
| 112 | + <actionGroup name="inlineEditTextAreaFromStage"> |
| 113 | + <arguments> |
| 114 | + <argument name="contentType"/> |
| 115 | + <argument name="content" type="string"/> |
| 116 | + <argument name="index" defaultValue="1" type="string"/> |
| 117 | + </arguments> |
| 118 | + <click selector="{{PageBuilderStage.inlineTextAreaEditor(contentType.role, index)}}" stepKey="focusOnEditorArea"/> |
| 119 | + <waitForPageLoad stepKey="waitForPageLoad"/> |
| 120 | + <fillField selector="{{PageBuilderStage.inlineTextAreaEditor(contentType.role, index)}}" userInput="{{content}}" stepKey="enterContentIntoEditor"/> |
| 121 | + <click selector="{{PageBuilderPanel.searchPanel}}" stepKey="loseFocusFromEditor"/> |
| 122 | + </actionGroup> |
| 123 | + <actionGroup name="verifyUploadImageButtons"> |
| 124 | + <arguments> |
| 125 | + <argument name="contentType"/> |
| 126 | + <argument name="section" defaultValue="PageBuilderStage"/> |
| 127 | + <argument name="index" defaultValue="1" type="string"/> |
| 128 | + <argument name="x" defaultValue="null" type="string"/> |
| 129 | + <argument name="y" defaultValue="null" type="string"/> |
| 130 | + </arguments> |
| 131 | + <comment userInput="Verify Upload Image and Select From Gallery buttons appear on hover" stepKey="comment"/> |
| 132 | + <moveMouseOver selector="{{PageBuilderStage.contentTypeInStageByIndex(contentType.role, index)}}" x="{{x}}" y="{{y}}" stepKey="mouseOverContentType"/> |
| 133 | + <waitForPageLoad stepKey="waitForPageLoad"/> |
| 134 | + <seeElement selector="{{section.onHoverUploadImageButton(contentType.role, index)}}" stepKey="seeUploadImageButton" /> |
| 135 | + <seeElement selector="{{section.onHoverSelectFromGalleryButton(contentType.role, index)}}" stepKey="seeSelectFromGalleryButton"/> |
| 136 | + </actionGroup> |
83 | 137 | </actionGroups>
|
0 commit comments