|
65 | 65 | <waitForElementVisible selector="{{TinyMCESection.InsertVariableIcon}}" stepKey="waitForInsertVariable1"/>
|
66 | 66 | <click selector="{{TinyMCESection.InsertVariableIcon}}" stepKey="clickInsertVariable1"/>
|
67 | 67 | </actionGroup>
|
| 68 | + <actionGroup name="seeVariableTinyMCE"> |
| 69 | + <arguments> |
| 70 | + <argument name="section" defaultValue="TextOnStage"/> |
| 71 | + <argument name="index" defaultValue="1" type="string"/> |
| 72 | + <argument name="labelValue" defaultValue=""/> |
| 73 | + </arguments> |
| 74 | + <waitForElementVisible selector="{{section.text(index, labelValue)}}" stepKey="waitForVariable"/> |
| 75 | + <seeElement selector="{{section.text(index, labelValue)}}" stepKey="seeVariable"/> |
| 76 | + </actionGroup> |
68 | 77 | <actionGroup name="addVariableToTinyMCE3" extends="addVariableToTinyMCE">
|
69 | 78 | <arguments>
|
70 | 79 | <argument name="variable" defaultValue=""/>
|
|
243 | 252 | <waitForPageLoad stepKey="waitForPageLoad1"/>
|
244 | 253 | <click selector="{{PageBuilderPanel.searchPanel}}" stepKey="loseFocusFromEditor"/>
|
245 | 254 | </actionGroup>
|
| 255 | + <actionGroup name="formatTextTinyMCE"> |
| 256 | + <arguments> |
| 257 | + <argument name="section" defaultValue="WYSIWYGOnPageBuilderInline"/> |
| 258 | + <!-- Receives pagebuilder_tinymce_format --> |
| 259 | + <argument name="format" defaultValue="TinyMCEFormatHeading1"/> |
| 260 | + </arguments> |
| 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"/> |
| 266 | + </actionGroup> |
| 267 | + <actionGroup name="waitForTinyMCEInFocus"> |
| 268 | + <arguments> |
| 269 | + <argument name="section" defaultValue="TextOnStage"/> |
| 270 | + <argument name="index" defaultValue="1" type="string"/> |
| 271 | + </arguments> |
| 272 | + <waitForElementVisible selector="{{section.tinymceInFocus(index)}}" stepKey="waitForTinyMCEInFocus"/> |
| 273 | + </actionGroup> |
| 274 | + <actionGroup name="clickDirectiveTinyMCE"> |
| 275 | + <arguments> |
| 276 | + <argument name="section" defaultValue="TextOnStage"/> |
| 277 | + <argument name="index" defaultValue="1" type="string"/> |
| 278 | + <argument name="labelValue" defaultValue=""/> |
| 279 | + </arguments> |
| 280 | + <waitForElementVisible selector="{{section.directive(index, labelValue)}}" stepKey="waitForDirective"/> |
| 281 | + <click selector="{{section.directive(index, labelValue)}}" stepKey="clickDirective"/> |
| 282 | + </actionGroup> |
| 283 | + <actionGroup name="seeDirectiveFocusedTinyMCE"> |
| 284 | + <arguments> |
| 285 | + <argument name="section" defaultValue="TextOnStage"/> |
| 286 | + <argument name="index" defaultValue="1" type="string"/> |
| 287 | + <argument name="labelValue" defaultValue=""/> |
| 288 | + </arguments> |
| 289 | + <waitForElementVisible selector="{{section.directiveFocused(index, labelValue)}}" stepKey="waitForDirectiveFocused"/> |
| 290 | + <seeElement selector="{{section.directiveFocused(index, labelValue)}}" stepKey="verifyDirectiveIsFocused"/> |
| 291 | + </actionGroup> |
| 292 | + <actionGroup name="scrollToTinyMCE"> |
| 293 | + <arguments> |
| 294 | + <argument name="section" defaultValue="TextOnStage"/> |
| 295 | + <argument name="index" defaultValue="1" type="string"/> |
| 296 | + </arguments> |
| 297 | + <scrollTo selector="{{section.tinymce(index)}}" stepKey="scrollToTinyMCE"/> |
| 298 | + <waitForElementVisible selector="{{section.tinymce(index)}}" stepKey="waitForTinyMCEVisible"/> |
| 299 | + </actionGroup> |
| 300 | + <actionGroup name="assertSelectedText"> |
| 301 | + <arguments> |
| 302 | + <argument name="expectedSelectedText"/> |
| 303 | + </arguments> |
| 304 | + <executeJS function="return window.getSelection().toString()" stepKey="selectionString"/> |
| 305 | + <assertEquals stepKey="assertSelectionText"> |
| 306 | + <expectedResult type="string">{{expectedSelectedText.selection}}</expectedResult> |
| 307 | + <actualResult type="variable">selectionString</actualResult> |
| 308 | + </assertEquals> |
| 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 | + <waitForElementVisible selector="{{section.directive(index, variable.editPanelValue)}}" stepKey="waitForVariableVisible"/> |
| 317 | + <doubleClick selector="{{section.directive(index, variable.editPanelValue)}}" stepKey="doubleClickOnVariablePlaceholder"/> |
| 318 | + <waitForPageLoad stepKey="waitForPageLoad"/> |
| 319 | + <waitForElementVisible selector="{{VariableSection.CancelBtnEnabled}}" stepKey="waitForCancelButton"/> |
| 320 | + <waitForElementVisible selector="{{VariableSection.Radio(variable.variableName)}}" stepKey="waitForVariableAfterDoubleClick"/> |
| 321 | + </actionGroup> |
| 322 | + <actionGroup name="closeVariablePanelTinyMCE"> |
| 323 | + <waitForElementVisible selector="{{VariableSection.CancelBtnEnabled}}" stepKey="waitForCancelButton"/> |
| 324 | + <click selector="{{VariableSection.CancelBtnEnabled}}" stepKey="clickCancelButton"/> |
| 325 | + <waitForPageLoad stepKey="waitForPageLoad"/> |
| 326 | + <waitForElementNotVisible selector="{{VariableSection.CancelBtnEnabled}}" stepKey="waitForVariableCancelNotVisible"/> |
| 327 | + </actionGroup> |
| 328 | + <actionGroup name="doubleClickWidgetTinyMCE"> |
| 329 | + <arguments> |
| 330 | + <argument name="section" defaultValue="TextOnStage"/> |
| 331 | + <argument name="index" defaultValue="1" type="string"/> |
| 332 | + <argument name="widget"/> |
| 333 | + </arguments> |
| 334 | + <waitForElementVisible selector="{{section.directive('1', TinyMCEWidgetCMSPageLink.editPanelValue)}}" stepKey="waitForWidgetVisible"/> |
| 335 | + <doubleClick selector="{{section.directive('1', TinyMCEWidgetCMSPageLink.editPanelValue)}}" stepKey="doubleClickOnWidgetPlaceholder"/> |
| 336 | + <waitForPageLoad stepKey="waitForPageLoad"/> |
| 337 | + <waitForElementVisible selector="{{WidgetSection.CancelBtnEnabled}}" stepKey="waitForCancelButtonVisible"/> |
| 338 | + </actionGroup> |
| 339 | + <actionGroup name="closeWidgetPanelTinyMCE"> |
| 340 | + <waitForElementVisible selector="{{WidgetSection.CancelBtnEnabled}}" stepKey="waitForCancelButton"/> |
| 341 | + <click selector="{{WidgetSection.CancelBtnEnabled}}" stepKey="clickCancelButton"/> |
| 342 | + <waitForPageLoad stepKey="waitForPageLoad"/> |
| 343 | + <waitForElementNotVisible selector="{{WidgetSection.CancelBtnEnabled}}" stepKey="waitForCancelButtonNotVisible"/> |
| 344 | + </actionGroup> |
| 345 | + <actionGroup name="focusTinyMCE"> |
| 346 | + <arguments> |
| 347 | + <argument name="section" defaultValue="TextOnStage"/> |
| 348 | + <argument name="index" defaultValue="1" type="string"/> |
| 349 | + </arguments> |
| 350 | + <waitForElementVisible selector="{{section.tinymce(index)}}" stepKey="waitForTinyMCE"/> |
| 351 | + <click selector="{{section.tinymce(index)}}" stepKey="focusOnTextEditorArea"/> |
| 352 | + <waitForPageLoad stepKey="waitForPageLoad"/> |
| 353 | + <waitForElementVisible selector="{{section.tinymceInFocus(index)}}" stepKey="waitForTinyMCEInFocus"/> |
| 354 | + </actionGroup> |
246 | 355 | </actionGroups>
|
0 commit comments