|
136 | 136 | </arguments>
|
137 | 137 | <waitForElementVisible time="10" selector="{{PageBuilderActionsSection.contentTypeInStage(contentType.role)}}" stepKey="waitForContentTypeInStageVisible"/>
|
138 | 138 | <moveMouseOver selector="{{PageBuilderActionsSection.contentTypeInStage(contentType.role)}}" x="10" y="0" stepKey="onMouseOverContentTypeStage"/>
|
139 |
| - <wait time="4" stepKey="waitForMouseOverAnimation"/> |
| 139 | + <waitForPageLoad stepKey="waitForPageLoad"/> |
140 | 140 | <waitForElementVisible time="10" selector="{{PageBuilderActionsSection.contentTypeOptionsMenu(contentType.role)}}" stepKey="waitForOptions"/>
|
141 | 141 | <click selector="{{PageBuilderActionsSection.contentTypeEdit(contentType.role)}}" stepKey="clickEditContentType"/>
|
142 | 142 | <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear"/>
|
|
153 | 153 | </arguments>
|
154 | 154 | <waitForElementVisible time="20" selector="{{PageBuilderActionsSection.contentTypeInStageByIndex(contentType.role, contentTypeIndex)}}" stepKey="waitForContentTypeInStageVisible"/>
|
155 | 155 | <moveMouseOver selector="{{PageBuilderActionsSection.contentTypeInStageByIndex(contentType.role, contentTypeIndex)}}" x="10" y="0" stepKey="onMouseOverContentTypeStage"/>
|
156 |
| - <wait time="0.5" stepKey="waitForMouseOverAnimation"/> |
| 156 | + <waitForPageLoad stepKey="waitForPageLoad"/> |
157 | 157 | <waitForElementVisible time="10" selector="{{PageBuilderActionsSection.contentTypeOptionsMenuByIndex(contentType.role, contentTypeIndex)}}" stepKey="waitForOptions"/>
|
158 | 158 | <waitForElementVisible selector="{{PageBuilderActionsSection.contentTypeEditByIndex(contentType.role, contentTypeIndex)}}" stepKey="waitForEditButton"/>
|
159 | 159 | <click selector="{{PageBuilderActionsSection.contentTypeEditByIndex(contentType.role, contentTypeIndex)}}" stepKey="clickEditContentType"/>
|
|
162 | 162 | <see userInput="Edit {{contentType.name}}" selector="{{PageBuilderActionsSection.editFormTitle}}" stepKey="seeContentTypeNameInEditFormTitle"/>
|
163 | 163 | <waitForPageLoad stepKey="waitForAnimation2" time="30"/>
|
164 | 164 | </actionGroup>
|
| 165 | + <actionGroup name="openPageBuilderEditPanelSmallByIndex"> |
| 166 | + <arguments> |
| 167 | + <argument name="contentType" defaultValue=""/> |
| 168 | + <argument name="contentTypeIndex" defaultValue="1" type="string"/> |
| 169 | + </arguments> |
| 170 | + <waitForElementVisible time="20" selector="{{PageBuilderActionsSection.contentTypeInStageByIndex(contentType.role, contentTypeIndex)}}" stepKey="waitForButtonElement"/> |
| 171 | + <click selector="{{PageBuilderActionsSection.contentTypeInStageByIndex(contentType.role, contentTypeIndex)}}" stepKey="clickButtonElement"/> |
| 172 | + <waitForPageLoad stepKey="waitForPageLoad"/> |
| 173 | + <waitForElementVisible time="10" selector="{{PageBuilderActionsSection.contentTypeOptionsMenuByIndex(contentType.role, contentTypeIndex)}}" stepKey="waitForOptions"/> |
| 174 | + <waitForElementVisible selector="{{PageBuilderActionsSection.contentTypeEditByIndex(contentType.role, contentTypeIndex)}}" stepKey="waitForEditButton"/> |
| 175 | + <click selector="{{PageBuilderActionsSection.contentTypeEditByIndex(contentType.role, contentTypeIndex)}}" stepKey="clickEditButton"/> |
| 176 | + <waitForElementVisible time="5" selector="{{PageBuilderActionsSection.editForm}}" stepKey="waitForEditForm"/> |
| 177 | + <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear"/> |
| 178 | + <see userInput="Edit {{contentType.name}}" selector="{{PageBuilderActionsSection.editFormTitle}}" stepKey="seeContentTypeNameInEditFormTitle"/> |
| 179 | + <waitForPageLoad stepKey="waitForPageLoad2"/> |
| 180 | + </actionGroup> |
165 | 181 | <actionGroup name="duplicateContentType">
|
166 | 182 | <arguments>
|
167 | 183 | <argument name="contentType" defaultValue=""/>
|
|
174 | 190 | <click selector="{{PageBuilderActionsSection.contentTypeDuplicate(contentType.role, targetIndex)}}" stepKey="clickDuplicateContentType"/>
|
175 | 191 | <waitForElementVisible selector="{{PageBuilderActionsSection.contentTypeInStageByIndex(contentType.role, expectedIndex)}}" stepKey="waitForDuplicateContentType"/>
|
176 | 192 | </actionGroup>
|
| 193 | + <actionGroup name="duplicateSmallContentType"> |
| 194 | + <arguments> |
| 195 | + <argument name="contentType" defaultValue=""/> |
| 196 | + <argument name="targetIndex" defaultValue="1" type="string"/> |
| 197 | + <argument name="expectedIndex" defaultValue="2" type="string"/> |
| 198 | + </arguments> |
| 199 | + <waitForElementVisible selector="{{PageBuilderActionsSection.contentTypeInStageByIndex(contentType.role, targetIndex)}}" stepKey="waitForContentTypeInStageVisible"/> |
| 200 | + <click selector="{{PageBuilderActionsSection.contentTypeInStageByIndex(contentType.role, targetIndex)}}" stepKey="clickContentTypeStage"/> |
| 201 | + <waitForPageLoad stepKey="waitForPageLoad1"/> |
| 202 | + <waitForElementVisible selector="{{PageBuilderActionsSection.contentTypeOptionsMenuByIndex(contentType.role, targetIndex)}}" stepKey="waitForOptionsMenu"/> |
| 203 | + <click selector="{{PageBuilderActionsSection.contentTypeDuplicate(contentType.role, targetIndex)}}" stepKey="clickDuplicateContentType"/> |
| 204 | + <waitForPageLoad stepKey="waitForPageLoad2"/> |
| 205 | + <waitForElementVisible selector="{{PageBuilderActionsSection.contentTypeInStageByIndex(contentType.role, expectedIndex)}}" stepKey="waitForDuplicateContentType"/> |
| 206 | + </actionGroup> |
177 | 207 | <actionGroup name="openPageBuilderOptionsByIndex">
|
178 | 208 | <arguments>
|
179 | 209 | <argument name="contentType" defaultValue=""/>
|
|
183 | 213 | <moveMouseOver selector="{{PageBuilderActionsSection.contentTypeInStageByIndex(contentType.role, contentTypeNumber)}}" x="10" y="0" stepKey="onMouseOverContentTypeStage"/>
|
184 | 214 | <waitForElementVisible time="10" selector="{{PageBuilderActionsSection.contentTypeEditByIndex(contentType.role, contentTypeNumber)}}" stepKey="waitForOptions" />
|
185 | 215 | </actionGroup>
|
186 |
| - <!-- Remove a content type which is in it's default state --> |
187 | 216 | <actionGroup name="removeEmptyContentTypeFromStage">
|
| 217 | + <!-- Remove a content type which is in it's default state --> |
188 | 218 | <arguments>
|
189 | 219 | <argument name="contentType" defaultValue=""/>
|
190 | 220 | </arguments>
|
191 | 221 | <waitForElementVisible time="10" selector="{{PageBuilderActionsSection.contentTypeInStage(contentType.role)}}" stepKey="waitForContentTypeInStageVisible" />
|
192 | 222 | <moveMouseOver selector="{{PageBuilderActionsSection.contentTypeInStage(contentType.role)}}" x="10" y="5" stepKey="onMouseOverContentTypeStage"/>
|
193 |
| - <wait time="0.5" stepKey="waitForMouseOverAnimation" /> |
| 223 | + <waitForPageLoad stepKey="waitForPageLoad"/> |
194 | 224 | <waitForElementVisible time="10" selector="{{PageBuilderActionsSection.contentTypeOptionsMenuByIndex(contentType.role, '1')}}" stepKey="waitForOptions" />
|
195 | 225 | <click selector="{{PageBuilderActionsSection.contentTypeRemove(contentType.role)}}" stepKey="clickRemoveContentType"/>
|
196 | 226 | </actionGroup>
|
|
204 | 234 | <seeElement selector="{{PageBuilderActionsSection.contentTypeInStageByIndex(contentType.role, contentTypeNumber)}}" stepKey="seeContentTypeInStage" />
|
205 | 235 | <waitForElementVisible time="20" selector="{{PageBuilderActionsSection.contentTypeInStageByIndex(contentType.role, contentTypeNumber)}}" stepKey="waitForContentTypeInStageVisible" />
|
206 | 236 | <moveMouseOver selector="{{PageBuilderActionsSection.contentTypeInStageByIndex(contentType.role, contentTypeNumber)}}" x="{{x}}" y="{{y}}" stepKey="onMouseOverContentTypeStage"/>
|
207 |
| - <wait time="0.5" stepKey="waitForMouseOverAnimation" /> |
| 237 | + <waitForPageLoad stepKey="waitForPageLoad"/> |
208 | 238 | <waitForElementVisible time="10" selector="{{PageBuilderActionsSection.contentTypeOptionsMenuByIndex(contentType.role, contentTypeNumber)}}" stepKey="waitForOptions" />
|
209 | 239 | <click selector="{{PageBuilderActionsSection.contentTypeRemoveByIndex(contentType.role, contentTypeNumber)}}" stepKey="clickRemoveContentType"/>
|
210 | 240 | </actionGroup>
|
| 241 | + <actionGroup name="removeContentTypeFromStageSmallByIndex"> |
| 242 | + <arguments> |
| 243 | + <argument name="contentType" defaultValue=""/> |
| 244 | + <argument name="contentTypeIndex" defaultValue="2" type="string"/> |
| 245 | + </arguments> |
| 246 | + <waitForElementVisible time="10" selector="{{PageBuilderActionsSection.contentTypeInStageByIndex(contentType.role, contentTypeIndex)}}" stepKey="waitForButtonElement"/> |
| 247 | + <click selector="{{PageBuilderActionsSection.contentTypeInStageByIndex(contentType.role, contentTypeIndex)}}" stepKey="clickButtonElement"/> |
| 248 | + <waitForPageLoad stepKey="waitForPageLoad"/> |
| 249 | + <waitForElementVisible time="10" selector="{{PageBuilderActionsSection.contentTypeOptionsMenuByIndex(contentType.role, contentTypeIndex)}}" stepKey="waitForOptions"/> |
| 250 | + <waitForElementVisible time="10" selector="{{PageBuilderActionsSection.contentTypeRemoveByIndex(contentType.role, contentTypeIndex)}}" stepKey="waitForRemoveButton"/> |
| 251 | + <click selector="{{PageBuilderActionsSection.contentTypeRemoveByIndex(contentType.role, contentTypeIndex)}}" stepKey="clickRemoveContentType"/> |
| 252 | + <waitForPageLoad stepKey="waitForPageLoad2"/> |
| 253 | + </actionGroup> |
211 | 254 | <actionGroup name="confirmRemovalModal">
|
212 | 255 | <waitForElementVisible time="10" selector="{{PageBuilderActionsSection.modal}}" stepKey="waitForModal" />
|
213 | 256 | <seeElement selector="{{PageBuilderActionsSection.modal}}" stepKey="seeRemovalModal"/>
|
214 | 257 | <waitForElementVisible time="10" selector="{{PageBuilderActionsSection.modalOk}}" stepKey="waitForModalOk" />
|
215 |
| - <wait time="1" stepKey="waitForModalEventBinding" /> |
| 258 | + <waitForPageLoad stepKey="waitForPageLoad1"/> |
216 | 259 | <click selector="{{PageBuilderActionsSection.modalOk}}" stepKey="confirmRemoveModal"/>
|
217 | 260 | <waitForElementNotVisible time="1" selector="{{PageBuilderActionsSection.modalOk}}" stepKey="waitForModalHide" />
|
218 |
| - <waitForPageLoad stepKey="waitForPageLoad"/> |
| 261 | + <waitForPageLoad stepKey="waitForPageLoad2"/> |
219 | 262 | </actionGroup>
|
220 |
| - |
221 |
| - <!-- Remove a content type which has been configured with data or has children --> |
222 | 263 | <actionGroup name="removeContentTypeFromStage">
|
| 264 | + <!-- Remove a content type which has been configured with data or has children --> |
223 | 265 | <arguments>
|
224 | 266 | <argument name="contentType" defaultValue=""/>
|
225 | 267 | </arguments>
|
|
354 | 396 | <actionGroup name="fillSlideOutPanelLinkUrlField">
|
355 | 397 | <arguments>
|
356 | 398 | <argument name="property" defaultValue=""/>
|
357 |
| - <argument name="selection" defaultValue=""/> |
| 399 | + <argument name="selection" defaultValue="" type="string"/> |
358 | 400 | <argument name="newTab" defaultValue=""/>
|
359 | 401 | </arguments>
|
360 | 402 | <waitForElementVisible time="10" selector="{{PageBuilderSection.LinkSelect(property.fieldName)}}" stepKey="waitForLinkSelect"/>
|
361 | 403 | <waitForElement time="10" selector="{{PageBuilderActionsSection.panelFieldControl(property.section, property.fieldName)}}" stepKey="waitForElementVisible"/>
|
362 |
| - <selectOption selector="{{PageBuilderActionsSection.panelFieldControl(property.section, property.fieldName)}}" userInput="{{selection.value}}" stepKey="selectOption"/> |
| 404 | + <selectOption selector="{{PageBuilderActionsSection.panelFieldControl(property.section, property.fieldName)}}" userInput="{{selection}}" stepKey="selectOption"/> |
363 | 405 | <fillField selector="{{PageBuilderSection.LinkInput(property.fieldName)}}" userInput="{{property.value}}" stepKey="inputLink"/>
|
364 | 406 | <conditionalClick selector="{{PageBuilderActionsSection.panelFieldControlSwitch(newTab.fieldName)}}" dependentSelector="{{PageBuilderActionsSection.panelFieldControlCheckboxState(newTab.fieldName, newTab.value)}}" visible="false" stepKey="conditionalClickNewTab"/>
|
365 | 407 | <waitForElementVisible selector="{{PageBuilderActionsSection.panelFieldControlCheckboxState(newTab.fieldName, newTab.value)}}" stepKey="waitForNewTabStateChange"/>
|
|
368 | 410 | <actionGroup name="validateSlideOutPanelLinkUrlField">
|
369 | 411 | <arguments>
|
370 | 412 | <argument name="property" defaultValue=""/>
|
371 |
| - <argument name="selection" defaultValue=""/> |
| 413 | + <argument name="selection" defaultValue="" type="string"/> |
372 | 414 | <argument name="newTab" defaultValue=""/>
|
373 | 415 | </arguments>
|
374 | 416 | <waitForElementVisible time="10" selector="{{PageBuilderSection.LinkSelect(property.fieldName)}}" stepKey="waitForLinkSelect"/>
|
375 | 417 | <waitForElement time="10" selector="{{PageBuilderActionsSection.panelFieldControl(property.section, property.fieldName)}}" stepKey="waitForElementVisible"/>
|
376 |
| - <seeInField selector="{{PageBuilderActionsSection.panelFieldControl(property.section, property.fieldName)}}" userInput="{{selection.value}}" stepKey="seeOptionIsSelected"/> |
| 418 | + <seeInField selector="{{PageBuilderActionsSection.panelFieldControl(property.section, property.fieldName)}}" userInput="{{selection}}" stepKey="seeOptionIsSelected"/> |
377 | 419 | <seeInField selector="{{PageBuilderSection.LinkInput(property.fieldName)}}" userInput="{{property.value}}" stepKey="seeInField"/>
|
378 | 420 | <waitForElementVisible time="10" selector="{{PageBuilderActionsSection.panelFieldControlCheckboxState(newTab.fieldName, newTab.value)}}" stepKey="waitForNewTab"/>
|
379 | 421 | </actionGroup>
|
|
595 | 637 | </actionGroup>
|
596 | 638 | <actionGroup name="saveEditPanelAndValidateFieldErrorGeneralSection">
|
597 | 639 | <arguments>
|
| 640 | + <argument name="form" defaultValue="PageBuilderActionsSection"/> |
598 | 641 | <argument name="property"/>
|
599 | 642 | </arguments>
|
600 | 643 | <waitForLoadingMaskToDisappear stepKey="waitForLoadingMask"/>
|
601 |
| - <waitForElementVisible time="5" selector="{{PageBuilderActionsSection.editFormSave}}" stepKey="waitForColumnSaveButton" /> |
602 |
| - <click selector="{{PageBuilderActionsSection.editFormSave}}" stepKey="clickSaveColumn"/> |
| 644 | + <waitForElementVisible time="5" selector="{{form.editFormSave}}" stepKey="waitForSaveButton"/> |
| 645 | + <click selector="{{form.editFormSave}}" stepKey="clickSaveButton"/> |
603 | 646 | <waitForElementVisible selector="{{PageBuilderActionsSection.panelFieldValidationError(property.section, property.fieldName)}}" stepKey="waitForErrorField"/>
|
604 | 647 | <waitForElementVisible selector="{{PageBuilderActionsSection.panelFieldValidationErrorMessage(property.section, property.fieldName, property.errorMessage)}}" stepKey="waitForErrorMessage"/>
|
605 | 648 | </actionGroup>
|
|
0 commit comments