|
69 | 69 | <arguments>
|
70 | 70 | <argument name="section" defaultValue="TextOnStage"/>
|
71 | 71 | <argument name="index" defaultValue="1" type="string"/>
|
72 |
| - <argument name="variable" defaultValue=""/> |
| 72 | + <argument name="labelValue" defaultValue=""/> |
73 | 73 | </arguments>
|
74 |
| - <waitForElementVisible selector="{{section.text(index, variable.editPanelValue)}}" stepKey="waitForVariable"/> |
75 |
| - <seeElement selector="{{section.text(index, variable.editPanelValue)}}" stepKey="seeVariableOnStage"/> |
| 74 | + <waitForElementVisible selector="{{section.text(index, labelValue)}}" stepKey="waitForVariable"/> |
| 75 | + <seeElement selector="{{section.text(index, labelValue)}}" stepKey="seeVariable"/> |
76 | 76 | </actionGroup>
|
77 | 77 | <actionGroup name="addVariableToTinyMCE3" extends="addVariableToTinyMCE">
|
78 | 78 | <arguments>
|
|
252 | 252 | <waitForPageLoad stepKey="waitForPageLoad1"/>
|
253 | 253 | <click selector="{{PageBuilderPanel.searchPanel}}" stepKey="loseFocusFromEditor"/>
|
254 | 254 | </actionGroup>
|
255 |
| - <actionGroup name="formatTextInlineTinyMCE"> |
| 255 | + <actionGroup name="formatTextTinyMCE"> |
256 | 256 | <arguments>
|
| 257 | + <argument name="section" defaultValue="WYSIWYGOnPageBuilderInline"/> |
257 | 258 | <!-- Receives pagebuilder_tinymce_format -->
|
258 | 259 | <argument name="format" defaultValue="TinyMCEFormatHeading1"/>
|
259 | 260 | </arguments>
|
260 |
| - <waitForElementVisible selector="{{WYSIWYGOnPageBuilderInline.formatSelector}}" stepKey="waitForFormatList"/> |
261 |
| - <click selector="{{WYSIWYGOnPageBuilderInline.formatSelector}}" stepKey="expandFormatList"/> |
262 |
| - <waitForElementVisible selector="{{WYSIWYGOnPageBuilderInline.formatOption(format.label)}}" stepKey="waitForFormatVisible"/> |
263 |
| - <click selector="{{WYSIWYGOnPageBuilderInline.formatOption(format.label)}}" stepKey="clickFormat"/> |
264 |
| - <waitForElementNotVisible selector="{{WYSIWYGOnPageBuilderInline.formatOption(format.label)}}" stepKey="waitForFormatInvisible"/> |
| 261 | + <waitForElementVisible selector="{{section.formatSelector}}" stepKey="waitForFormatList"/> |
| 262 | + <click selector="{{section.formatSelector}}" stepKey="expandFormatList"/> |
| 263 | + <waitForElementVisible selector="{{section.formatOption(format.label)}}" stepKey="waitForFormatOptionVisible"/> |
| 264 | + <click selector="{{section.formatOption(format.label)}}" stepKey="clickFormatOption"/> |
| 265 | + <waitForElementNotVisible selector="{{section.formatOption(format.label)}}" stepKey="waitForFormatInvisible"/> |
265 | 266 | </actionGroup>
|
266 |
| - <actionGroup name="waitForTinyMCEFocus"> |
| 267 | + <actionGroup name="waitForTinyMCEInFocus"> |
267 | 268 | <arguments>
|
268 | 269 | <argument name="section" defaultValue="TextOnStage"/>
|
269 | 270 | <argument name="index" defaultValue="1" type="string"/>
|
270 | 271 | </arguments>
|
271 |
| - <waitForElementVisible selector="{{section.tinymceInFocus(index)}}" stepKey="waitForTinyMCEFocus"/> |
| 272 | + <waitForElementVisible selector="{{section.tinymceInFocus(index)}}" stepKey="waitForTinyMCEInFocus"/> |
272 | 273 | </actionGroup>
|
273 | 274 | <actionGroup name="clickDirectiveTinyMCE">
|
274 | 275 | <arguments>
|
275 | 276 | <argument name="section" defaultValue="TextOnStage"/>
|
276 | 277 | <argument name="index" defaultValue="1" type="string"/>
|
277 |
| - <argument name="directive"/> |
| 278 | + <argument name="labelValue" defaultValue=""/> |
278 | 279 | </arguments>
|
279 |
| - <click selector="{{section.directive(index, directive.editPanelValue)}}" stepKey="clickDirective"/> |
| 280 | + <waitForElementVisible selector="{{section.directive(index, labelValue)}}" stepKey="waitForDirective"/> |
| 281 | + <click selector="{{section.directive(index, labelValue)}}" stepKey="clickDirective"/> |
280 | 282 | </actionGroup>
|
281 | 283 | <actionGroup name="seeDirectiveFocusedTinyMCE">
|
282 | 284 | <arguments>
|
283 | 285 | <argument name="section" defaultValue="TextOnStage"/>
|
284 | 286 | <argument name="index" defaultValue="1" type="string"/>
|
285 |
| - <argument name="directive"/> |
| 287 | + <argument name="labelValue" defaultValue=""/> |
286 | 288 | </arguments>
|
287 |
| - <waitForElementVisible selector="{{section.directiveFocused(index, directive.editPanelValue)}}" stepKey="waitForDirectiveFocused"/> |
288 |
| - <seeElement selector="{{section.directiveFocused(index, directive.editPanelValue)}}" stepKey="verifyDirectiveIsFocused"/> |
| 289 | + <waitForElementVisible selector="{{section.directiveFocused(index, labelValue)}}" stepKey="waitForDirectiveFocused"/> |
| 290 | + <seeElement selector="{{section.directiveFocused(index, labelValue)}}" stepKey="verifyDirectiveIsFocused"/> |
289 | 291 | </actionGroup>
|
290 | 292 | <actionGroup name="scrollToTinyMCE">
|
291 | 293 | <arguments>
|
| 294 | + <argument name="section" defaultValue="TextOnStage"/> |
292 | 295 | <argument name="index" defaultValue="1" type="string"/>
|
293 | 296 | </arguments>
|
294 |
| - <scrollTo selector="{{TextOnStage.tinymce(index)}}" stepKey="scrollToTinyMCE"/> |
| 297 | + <scrollTo selector="{{section.tinymce(index)}}" stepKey="scrollToTinyMCE"/> |
| 298 | + <waitForElementVisible selector="{{section.tinymce(index)}}" stepKey="waitForTinyMCEVisible"/> |
295 | 299 | </actionGroup>
|
296 |
| - <actionGroup name="assertSelectedTextTinyMCE"> |
| 300 | + <actionGroup name="assertSelectedText"> |
297 | 301 | <arguments>
|
298 |
| - <argument name="expected"/> |
| 302 | + <argument name="expectedSelectedText"/> |
299 | 303 | </arguments>
|
300 |
| - <executeJS function="return window.getSelection().toString()" stepKey="selectionHeadingString"/> |
| 304 | + <executeJS function="return window.getSelection().toString()" stepKey="selectionString"/> |
301 | 305 | <assertEquals stepKey="assertSelectionText">
|
302 |
| - <expectedResult type="string">{{expected.selection}}</expectedResult> |
303 |
| - <actualResult type="variable">selectionHeadingString</actualResult> |
| 306 | + <expectedResult type="string">{{expectedSelectedText.selection}}</expectedResult> |
| 307 | + <actualResult type="variable">selectionString</actualResult> |
304 | 308 | </assertEquals>
|
305 | 309 | </actionGroup>
|
| 310 | + <actionGroup name="doubleClickVariableTinyMCE"> |
| 311 | + <arguments> |
| 312 | + <argument name="section" defaultValue="TextOnStage"/> |
| 313 | + <argument name="index" defaultValue="1" type="string"/> |
| 314 | + <argument name="variable"/> |
| 315 | + </arguments> |
| 316 | + <doubleClick selector="{{section.directive(index, variable.editPanelValue)}}" stepKey="doubleClickOnVariablePlaceholder"/> |
| 317 | + <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear"/> |
| 318 | + <waitForElementVisible selector="{{VariableSection.CancelBtnEnabled}}" stepKey="waitForCancelButton"/> |
| 319 | + <waitForElementVisible selector="{{VariableSection.Radio(variable.variableName)}}" stepKey="waitForVariableAfterDoubleClick"/> |
| 320 | + </actionGroup> |
| 321 | + <actionGroup name="closeVariablePanelTinyMCE"> |
| 322 | + <waitForElementVisible selector="{{VariableSection.CancelBtnEnabled}}" stepKey="waitForCancelButton"/> |
| 323 | + <click selector="{{VariableSection.CancelBtnEnabled}}" stepKey="clickCancelButton"/> |
| 324 | + <waitForElementNotVisible selector="{{VariableSection.CancelBtnEnabled}}" stepKey="waitForVariableCancelNotVisible"/> |
| 325 | + </actionGroup> |
| 326 | + <actionGroup name="doubleClickWidgetTinyMCE"> |
| 327 | + <arguments> |
| 328 | + <argument name="section" defaultValue="TextOnStage"/> |
| 329 | + <argument name="index" defaultValue="1" type="string"/> |
| 330 | + <argument name="widget"/> |
| 331 | + </arguments> |
| 332 | + <doubleClick selector="{{section.directive('1', TinyMCEWidgetCMSPageLink.editPanelValue)}}" stepKey="doubleClickOnWidgetPlaceholder"/> |
| 333 | + <waitForPageLoad stepKey="waitForPageLoad"/> |
| 334 | + <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear"/> |
| 335 | + <waitForElementVisible selector="{{WidgetSection.CancelBtnEnabled}}" stepKey="waitForWidgetType"/> |
| 336 | + </actionGroup> |
| 337 | + <actionGroup name="closeWidgetPanelTinyMCE"> |
| 338 | + <click selector="{{WidgetSection.CancelBtnEnabled}}" stepKey="clickInsertWidget3"/> |
| 339 | + <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear7"/> |
| 340 | + </actionGroup> |
306 | 341 | </actionGroups>
|
0 commit comments