|
52 | 52 | <actionGroup name="switchToPageBuilderStage">
|
53 | 53 | <waitForElementVisible time="30" selector="{{CmsNewPagePageContentSection.header}}" stepKey="waitForElementVisible"/>
|
54 | 54 | <click selector="{{CmsNewPagePageContentSection.header}}" stepKey="clickExpandContent"/>
|
| 55 | + <waitForPageLoad time="30" stepKey="waitForStageToLoad"/> |
55 | 56 | <!-- Wait for the first row to be added into the stage for it to be "ready" -->
|
56 |
| - <waitForElementNotVisible selector="{{PageBuilderActionsSection.stageLoading}}" stepKey="waitForStageLoad"/> |
| 57 | + <waitForElementNotVisible selector="{{PageBuilderActionsSection.stageLoading}}" stepKey="waitForStageLoadingGraphicNotVisible"/> |
57 | 58 | <waitForElementVisible time="30" selector="{{RowOnStage.base('1')}}" stepKey="waitForPageBuilderRow"/>
|
58 | 59 | </actionGroup>
|
59 | 60 | <actionGroup name="expandConfigurationSection">
|
|
76 | 77 | </arguments>
|
77 | 78 | <waitForElementVisible time="30" selector="{{PageBuilderActionsSection.draggableContentBlockInPanel(contentBlockType.name)}}" stepKey="waitForContentBlockInPanel"/>
|
78 | 79 | <dragAndDrop selector1="{{PageBuilderActionsSection.draggableContentBlockInPanel(contentBlockType.name)}}" selector2="{{PageBuilderActionsSection.dropAreaInStage}}" stepKey="dropContentBlockIntoStage"/>
|
| 80 | + <waitForPageLoad time="30" stepKey="waitForStageToLoad"/> |
79 | 81 | <waitForElementVisible time="30" selector="{{PageBuilderActionsSection.contentBlockInStage(contentBlockType.role)}}" stepKey="waitForContentBlockInStage"/>
|
80 |
| - <waitForPageLoad stepKey="waitForToolbarsToLoad" time="30"/> |
81 | 82 | </actionGroup>
|
82 | 83 | <actionGroup name="dragContentBlockToStageByIndex">
|
83 | 84 | <arguments>
|
84 | 85 | <argument name="contentBlockType"/>
|
85 | 86 | <argument name="contentBlockNumber" defaultValue="1" type="string"/>
|
86 | 87 | </arguments>
|
87 | 88 | <dragAndDrop selector1="{{PageBuilderActionsSection.draggableContentBlockInPanel(contentBlockType.name)}}" selector2="{{PageBuilderActionsSection.dropAreaInStage}}" stepKey="dropContentBlockIntoStage"/>
|
| 89 | + <waitForPageLoad time="30" stepKey="waitForStageToLoad"/> |
88 | 90 | <waitForElementVisible time="30" selector="{{PageBuilderActionsSection.contentBlockInStageByIndex(contentBlockType.role, contentBlockNumber)}}" stepKey="waitForContentBlockInStage"/>
|
89 | 91 | </actionGroup>
|
90 | 92 | <actionGroup name="dragContentBlockToStageAndExpectEditPanel">
|
91 | 93 | <arguments>
|
92 | 94 | <argument name="contentBlockType"/>
|
93 | 95 | </arguments>
|
94 | 96 | <dragAndDrop selector1="{{PageBuilderActionsSection.draggableContentBlockInPanel(contentBlockType.name)}}" selector2="{{PageBuilderActionsSection.dropAreaInStage}}" stepKey="dropContentBlockIntoStage"/>
|
| 97 | + <waitForPageLoad time="30" stepKey="waitForStageToLoad"/> |
95 | 98 | <waitForElementVisible time="10" selector="{{PageBuilderActionsSection.contentBlockInStage(contentBlockType.role)}}" stepKey="waitForContentBlockInStage"/>
|
96 | 99 | <waitForElementVisible time="30" selector="{{PageBuilderActionsSection.editFormTitle}}" stepKey="waitForContentBlockNameInEditFormTitle"/>
|
97 | 100 | <see userInput="Edit {{contentBlockType.editPanelName}}" selector="{{PageBuilderActionsSection.editFormTitle}}" stepKey="seeContentBlockNameInEditFormTitle"/>
|
|
106 | 109 | </arguments>
|
107 | 110 | <scrollTo selector="{{CmsNewPagePageActionsSection.contentSectionName}}" stepKey="scrollToTopOfStage"/>
|
108 | 111 | <dragAndDrop selector1="{{PageBuilderActionsSection.draggableContentBlockInPanel(contentBlockType.name)}}" selector2="{{PageBuilderActionsSection.contentBlockContainer(containerTargetType.role, containerTargetIndex)}}" stepKey="dropContentBlockIntoStage"/>
|
| 112 | + <waitForPageLoad time="30" stepKey="waitForStageToLoad"/> |
109 | 113 | <waitForElementVisible time="30" selector="{{PageBuilderActionsSection.contentBlockInStageByIndex(contentBlockType.role, contentBlockIndex)}}" stepKey="waitForContentBlockInContainer"/>
|
110 | 114 | <waitForElementVisible time="30" selector="{{PageBuilderActionsSection.editFormTitle}}" stepKey="waitForContentBlockNameInEditFormTitle"/>
|
111 | 115 | <see userInput="Edit {{contentBlockType.editPanelName}}" selector="{{PageBuilderActionsSection.editFormTitle}}" stepKey="seeContentBlockNameInEditFormTitle"/>
|
|
122 | 126 | </arguments>
|
123 | 127 | <scrollTo selector="{{CmsNewPagePageActionsSection.contentSectionName}}" stepKey="scrollToTopOfStage"/>
|
124 | 128 | <dragAndDrop selector1="{{PageBuilderActionsSection.draggableContentBlockInPanel(contentBlockType.name)}}" selector2="{{PageBuilderActionsSection.contentBlockContainer(containerTargetType.role, containerTargetIndex)}}" x="{{offsetXCoordinate}}" y="{{offsetYCoordinate}}" stepKey="dropContentBlockIntoStage"/>
|
| 129 | + <waitForPageLoad time="30" stepKey="waitForStageToLoad"/> |
125 | 130 | <waitForElementVisible time="30" selector="{{PageBuilderActionsSection.contentBlockInStageByIndex(contentBlockType.role, contentBlockIndex)}}" stepKey="waitForContentBlockInStage"/>
|
126 | 131 | </actionGroup>
|
127 | 132 | <!-- Test to ensure a content block doesn't receive drop events -->
|
128 | 133 | <actionGroup name="dragContentBlockToContentBlock">
|
129 | 134 | <arguments>
|
130 | 135 | <argument name="contentBlockType"/>
|
| 136 | + <argument name="contentBlockIndex" defaultValue="1" type="string"/> |
131 | 137 | <argument name="targetBlockType"/>
|
132 | 138 | <argument name="offsetXCoordinate" defaultValue="null" type="string"/>
|
133 | 139 | <argument name="offsetYCoordinate" defaultValue="null" type="string"/>
|
134 | 140 | </arguments>
|
135 | 141 | <scrollTo selector="{{CmsNewPagePageActionsSection.contentSectionName}}" stepKey="scrollToTopOfStage"/>
|
136 | 142 | <dragAndDrop selector1="{{PageBuilderActionsSection.draggableContentBlockInPanel(contentBlockType.name)}}" selector2="{{PageBuilderActionsSection.contentBlockInStage(targetBlockType.role)}}" x="{{offsetXCoordinate}}" y="{{offsetYCoordinate}}" stepKey="dropContentBlockIntoStage"/>
|
137 |
| - <waitForElementVisible time="30" selector="{{PageBuilderActionsSection.contentBlockInStage(contentBlockType.role)}}" stepKey="waitForContentBlockInStage"/> |
| 143 | + <waitForPageLoad time="30" stepKey="waitForStageToLoad"/> |
| 144 | + <waitForElementVisible time="30" selector="{{PageBuilderActionsSection.contentBlockInStageByIndex(contentBlockType.role, contentBlockIndex)}}" stepKey="waitForContentBlockInStage"/> |
138 | 145 | </actionGroup>
|
139 | 146 | <actionGroup name="dragContentBlockToDropZone">
|
140 | 147 | <arguments>
|
|
163 | 170 | </arguments>
|
164 | 171 | <waitForElementVisible time="20" selector="{{PageBuilderActionsSection.contentBlockInStageByIndex(contentBlockType.role, contentBlockIndex)}}" stepKey="waitForContentBlockInStageVisible"/>
|
165 | 172 | <moveMouseOver selector="{{PageBuilderActionsSection.contentBlockInStageByIndex(contentBlockType.role, contentBlockIndex)}}" x="{{offsetXCoordinate}}" y="{{offsetYCoordinate}}" stepKey="onMouseOverContentBlockStage"/>
|
166 |
| - <waitForPageLoad stepKey="waitForAnimation" time="30"/> |
| 173 | + <waitForPageLoad time="30" stepKey="waitForAnimation"/> |
167 | 174 | <waitForElementVisible time="10" selector="{{PageBuilderActionsSection.contentBlockOptionsMenuByIndex(contentBlockType.role, contentBlockIndex)}}" stepKey="waitForOptions"/>
|
168 | 175 | <waitForElementVisible selector="{{PageBuilderActionsSection.contentBlockMoveByIndex(contentBlockType.role, contentBlockIndex)}}" stepKey="waitForEditButton"/>
|
169 | 176 | <dragAndDrop selector1="{{PageBuilderActionsSection.contentBlockMoveByIndex(contentBlockType.role, contentBlockIndex)}}" selector2="{{PageBuilderActionsSection.contentBlockContainer(containerTargetType.role, containerTargetIndex)}}" stepKey="moveContentTypeIntoContainer"/>
|
| 177 | + <waitForPageLoad time="30" stepKey="waitForStageToLoad"/> |
170 | 178 | <waitForElementVisible time="30" selector="{{PageBuilderActionsSection.contentBlockInStageByIndex(contentBlockType.role, contentBlockIndex)}}" stepKey="waitForContentBlockInStage"/>
|
171 | 179 | </actionGroup>
|
172 | 180 | <actionGroup name="openPageBuilderEditPanel">
|
|
177 | 185 | </arguments>
|
178 | 186 | <waitForElementVisible time="10" selector="{{PageBuilderActionsSection.contentBlockInStage(contentBlockType.role)}}" stepKey="waitForContentBlockInStageVisible"/>
|
179 | 187 | <moveMouseOver selector="{{PageBuilderActionsSection.contentBlockInStage(contentBlockType.role)}}" x="{{offsetXCoordinate}}" y="{{offsetYCoordinate}}" stepKey="onMouseOverContentBlockStage"/>
|
180 |
| - <wait time="4" stepKey="waitForMouseOverAnimation"/> |
| 188 | + <waitForPageLoad time="30" stepKey="waitForAnimation"/> |
181 | 189 | <waitForElementVisible time="10" selector="{{PageBuilderActionsSection.contentBlockOptionsMenu(contentBlockType.role)}}" stepKey="waitForOptions"/>
|
182 | 190 | <click selector="{{PageBuilderActionsSection.contentBlockEdit(contentBlockType.role)}}" stepKey="clickEditContentBlock"/>
|
183 |
| - <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear"/> |
| 191 | + <waitForPageLoad time="30" stepKey="waitForEditFormToLoad"/> |
184 | 192 | <waitForElementVisible selector="{{PageBuilderActionsSection.editForm}}" stepKey="waitForEditForm"/>
|
185 | 193 | <see userInput="Edit {{contentBlockType.name}}" selector="{{PageBuilderActionsSection.editFormTitle}}" stepKey="seeContentBlockNameInEditFormTitle"/>
|
186 |
| - <waitForLoadingMaskToDisappear stepKey="waitForAnimation2"/> |
187 | 194 | </actionGroup>
|
188 | 195 | <actionGroup name="openPageBuilderEditPanelByIndex">
|
189 | 196 | <arguments>
|
|
220 | 227 | <arguments>
|
221 | 228 | <argument name="contentBlockType"/>
|
222 | 229 | <argument name="contentBlockNumber" defaultValue="1" type="string"/>
|
| 230 | + <argument name="offsetXCoordinate" defaultValue="10" type="string"/> |
| 231 | + <argument name="offsetYCoordinate" defaultValue="0" type="string"/> |
223 | 232 | </arguments>
|
224 | 233 | <waitForElementVisible time="20" selector="{{PageBuilderActionsSection.contentBlockInStageByIndex(contentBlockType.role, contentBlockNumber)}}" stepKey="waitForContentBlockInStageVisible"/>
|
225 |
| - <moveMouseOver selector="{{PageBuilderActionsSection.contentBlockInStageByIndex(contentBlockType.role, contentBlockNumber)}}" x="10" y="0" stepKey="onMouseOverContentBlockStage"/> |
| 234 | + <moveMouseOver selector="{{PageBuilderActionsSection.contentBlockInStageByIndex(contentBlockType.role, contentBlockNumber)}}" x="{{offsetXCoordinate}}" y="{{offsetYCoordinate}}" stepKey="onMouseOverContentBlockStage"/> |
226 | 235 | <waitForElementVisible time="10" selector="{{PageBuilderActionsSection.contentBlockEditByIndex(contentBlockType.role, contentBlockNumber)}}" stepKey="waitForOptions"/>
|
227 | 236 | </actionGroup>
|
228 | 237 | <!-- Remove a content type which is in it's default state -->
|
229 | 238 | <actionGroup name="removeEmptyContentBlockFromStage">
|
230 | 239 | <arguments>
|
231 | 240 | <argument name="contentBlockType"/>
|
| 241 | + <argument name="offsetXCoordinate" defaultValue="10" type="string"/> |
| 242 | + <argument name="offsetYCoordinate" defaultValue="5" type="string"/> |
232 | 243 | </arguments>
|
233 | 244 | <waitForElementVisible time="10" selector="{{PageBuilderActionsSection.contentBlockInStage(contentBlockType.role)}}" stepKey="waitForContentBlockInStageVisible"/>
|
234 |
| - <moveMouseOver selector="{{PageBuilderActionsSection.contentBlockInStage(contentBlockType.role)}}" x="10" y="5" stepKey="onMouseOverContentBlockStage"/> |
| 245 | + <moveMouseOver selector="{{PageBuilderActionsSection.contentBlockInStage(contentBlockType.role)}}" x="{{offsetXCoordinate}}" y="{{offsetYCoordinate}}" stepKey="onMouseOverContentBlockStage"/> |
235 | 246 | <wait time="0.5" stepKey="waitForMouseOverAnimation"/>
|
236 | 247 | <waitForElementVisible time="10" selector="{{PageBuilderActionsSection.contentBlockOptionsMenuByIndex(contentBlockType.role, '1')}}" stepKey="waitForOptions"/>
|
237 | 248 | <click selector="{{PageBuilderActionsSection.contentBlockRemove(contentBlockType.role)}}" stepKey="clickRemoveContentBlock"/>
|
|
248 | 259 | <waitForElementVisible time="20" selector="{{PageBuilderActionsSection.contentBlockInStageByIndex(contentBlockType.role, contentBlockNumber)}}" stepKey="waitForContentBlockInStageVisible"/>
|
249 | 260 | <moveMouseOver selector="{{PageBuilderActionsSection.contentBlockInStageByIndex(contentBlockType.role, contentBlockNumber)}}" x="{{x}}" y="{{y}}" stepKey="onMouseOverContentBlockStage"/>
|
250 | 261 | <waitForPageLoad time="30" stepKey="waitForMouseOverAnimation"/>
|
251 |
| - <waitForElementVisible time="10" selector="{{PageBuilderActionsSection.contentBlockOptionsMenuByIndex(contentBlockType.role, contentBlockNumber)}}" stepKey="waitForOptions"/> |
| 262 | + <waitForElementVisible time="30" selector="{{PageBuilderActionsSection.contentBlockOptionsMenuByIndex(contentBlockType.role, contentBlockNumber)}}" stepKey="waitForOptions"/> |
252 | 263 | <click selector="{{PageBuilderActionsSection.contentBlockRemoveByIndex(contentBlockType.role, contentBlockNumber)}}" stepKey="clickRemoveContentBlock"/>
|
253 | 264 | <waitForPageLoad time="30" stepKey="waitForRemoveAnimation"/>
|
254 |
| - <waitForElementNotVisible time="30" selector="{{PageBuilderActionsSection.contentBlockInStageByIndex(contentBlockType.role, contentBlockNumber)}}" stepKey="waitForContentBlockRemoval"/> |
| 265 | + <!-- Follow with confirmRemovalModal actionGroup --> |
255 | 266 | </actionGroup>
|
256 | 267 | <actionGroup name="confirmRemovalModal">
|
257 | 268 | <waitForElementVisible time="10" selector="{{PageBuilderActionsSection.modal}}" stepKey="waitForModal"/>
|
|
266 | 277 | <actionGroup name="removeContentBlockFromStage">
|
267 | 278 | <arguments>
|
268 | 279 | <argument name="contentBlockType"/>
|
| 280 | + <argument name="offsetXCoordinate" defaultValue="10" type="string"/> |
| 281 | + <argument name="offsetYCoordinate" defaultValue="0" type="string"/> |
269 | 282 | </arguments>
|
270 | 283 | <waitForElementVisible time="10" selector="{{PageBuilderActionsSection.contentBlockInStage(contentBlockType.role)}}" stepKey="waitForContentBlockInStageVisible"/>
|
271 |
| - <moveMouseOver selector="{{PageBuilderActionsSection.contentBlockInStage(contentBlockType.role)}}" x="10" y="0" stepKey="onMouseOverContentBlockStage"/> |
| 284 | + <moveMouseOver selector="{{PageBuilderActionsSection.contentBlockInStage(contentBlockType.role)}}" x="{{offsetXCoordinate}}" y="{{offsetYCoordinate}}" stepKey="onMouseOverContentBlockStage"/> |
272 | 285 | <waitForPageLoad stepKey="waitForPageLoad1"/>
|
273 | 286 | <waitForElementVisible time="10" selector="{{PageBuilderActionsSection.contentBlockOptionsMenu(contentBlockType.role)}}" stepKey="waitForOptions"/>
|
274 | 287 | <click selector="{{PageBuilderActionsSection.contentBlockRemove(contentBlockType.role)}}" stepKey="clickRemoveContentBlock"/>
|
| 288 | + <waitForPageLoad time="30" stepKey="waitForRemoveModal"/> |
275 | 289 | <waitForElementVisible time="30" selector="{{PageBuilderActionsSection.modal}}" stepKey="waitForModal"/>
|
276 | 290 | <waitForElementVisible time="30" selector="{{PageBuilderActionsSection.modalOk}}" stepKey="waitForModalOk"/>
|
277 | 291 | <click selector="{{PageBuilderActionsSection.modalOk}}" stepKey="confirmRemoveModal"/>
|
|
348 | 362 | <see userInput="{{property.name}}" selector="{{PageBuilderActionsSection.panelFieldLabel(property.section, property.fieldName, property.section, property.name)}}" stepKey="seePropertyLabel"/>
|
349 | 363 | <fillField selector="{{PageBuilderColumnSection.panelFieldControl(property.section, property.fieldName)}}" userInput="{{property.value}}" stepKey="fillPropertyField"/>
|
350 | 364 | <click selector="{{PageBuilderActionsSection.panelFieldLabel(property.section, property.fieldName, property.section, property.name)}}" stepKey="clickOnFieldLabel"/>
|
| 365 | + <waitForPageLoad time="30" stepKey="waitForSectionChange"/> |
351 | 366 | <waitForElementVisible time="2" selector="{{PageBuilderActionsSection.panelSectionChangedIcon(property.section)}}" stepKey="waitForSectionChangedIcon"/>
|
352 | 367 | </actionGroup>
|
353 | 368 | <actionGroup name="fillSlideOutPanelMultiSelectField">
|
|
0 commit comments