|
39 | 39 | <waitForElementVisible selector="{{TextOnConfiguration.tinyMCEVariable(variable.editPanelValue, '1')}}" stepKey="waitForVariable2"/>
|
40 | 40 | <switchToIFrame stepKey="exitIFrame"/>
|
41 | 41 | </actionGroup>
|
| 42 | + <actionGroup name="addPageLinkVariableWYSIWYGDisabled"> |
| 43 | + <arguments> |
| 44 | + <argument name="variable" defaultValue=""/> |
| 45 | + </arguments> |
| 46 | + <comment userInput="Adding Variable To Tiny MCE" stepKey="commentAddVariableToTinyMCE"/> |
| 47 | + <waitForElementVisible selector="{{TextOnConfiguration.insertVariableButton}}" stepKey="waitForInsertVariable1"/> |
| 48 | + <click selector="{{TextOnConfiguration.insertVariableButton}}" stepKey="clickInsertVariable1"/> |
| 49 | + <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear"/> |
| 50 | + <waitForElementVisible selector="{{VariableSection.Radio(variable.variableName)}}" stepKey="waitForVariable1"/> |
| 51 | + <checkOption selector="{{VariableSection.Radio(variable.variableName)}}" stepKey="selectVariable"/> |
| 52 | + <waitForElementVisible selector="{{VariableSection.InsertWidget}}" stepKey="waitForInsertVariable2"/> |
| 53 | + <click selector="{{VariableSection.InsertWidget}}" stepKey="clickInsertVariable2"/> |
| 54 | + <waitForElementNotVisible selector="{{VariableSection.InsertWidget}}" stepKey="waitForVariableModalToClose"/> |
| 55 | + <waitForElementVisible selector="{{TextOnConfiguration.textArea}}" stepKey="waitForTextArea"/> |
| 56 | + <executeJS function="return document.getElementById('{{TextOnConfiguration.textAreaId}}').value;" stepKey="getText"/> |
| 57 | + <assertContains actual="getText" actualType="variable" expected="{{variable.editPanelValue}}" expectedType="string" stepKey="assertValue"/> |
| 58 | + </actionGroup> |
42 | 59 | <actionGroup name="addPageLinkWidgetToTinyMCE">
|
43 | 60 | <arguments>
|
44 | 61 | <argument name="widget" defaultValue=""/>
|
|
71 | 88 | <waitForElementVisible selector="{{TextOnConfiguration.tinyMCEWidget(widget.editPanelValue, '1')}}" stepKey="waitForWidget"/>
|
72 | 89 | <switchToIFrame stepKey="exitIFrame"/>
|
73 | 90 | </actionGroup>
|
| 91 | + <actionGroup name="addPageLinkWidgetWYSIWYGDisabled"> |
| 92 | + <arguments> |
| 93 | + <argument name="widget" defaultValue=""/> |
| 94 | + <argument name="page" defaultValue="" type="string"/> |
| 95 | + </arguments> |
| 96 | + <comment userInput="Adding Widget" stepKey="commentAddWidget"/> |
| 97 | + <waitForElementVisible selector="{{TextOnConfiguration.insertWidgetButton}}" stepKey="waitForInsertWidget1"/> |
| 98 | + <click selector="{{TextOnConfiguration.insertWidgetButton}}" stepKey="clickInsertWidget1"/> |
| 99 | + <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear"/> |
| 100 | + <waitForElementVisible selector="{{WidgetSection.WidgetType}}" stepKey="waitForWidgetType"/> |
| 101 | + <selectOption selector="{{WidgetSection.WidgetType}}" userInput="{{TinyMCEWidgetCMSPageLink.widgetType}}" stepKey="selectCMSPageLinkWidget"/> |
| 102 | + <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear2"/> |
| 103 | + <waitForElementVisible selector="{{moveToCE.SelectPageButton}}" stepKey="waitForSelectPage"/> |
| 104 | + <click selector="{{moveToCE.SelectPageButton}}" stepKey="clickSelectPage"/> |
| 105 | + <waitForLoadingMaskToDisappear stepKey="waitForSelectPageModal"/> |
| 106 | + <waitForElementVisible selector="{{moveToCE.generalFilter('chooser_title')}}" stepKey="waitForGrid"/> |
| 107 | + <fillField selector="{{moveToCE.generalFilter('chooser_title')}}" userInput="{{page}}" stepKey="enterPageName"/> |
| 108 | + <click selector="{{AdminProductGridFilterSection.applyFilters}}" stepKey="clickSearch"/> |
| 109 | + <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear3"/> |
| 110 | + <waitForElementVisible selector="//td[contains(@class,'col-url')][contains(text(),'{{page}}')]" stepKey="waitForSearchResult"/> |
| 111 | + <click selector="//td[contains(@class,'col-url')][contains(text(),'{{page}}')]" stepKey="clickCmsPageLinkRow"/> |
| 112 | + <waitForElementNotVisible selector="//td[contains(@class,'col-url')][contains(text(),'{{page}}')]" stepKey="waitForPageSelectionModalToClose"/> |
| 113 | + <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear4"/> |
| 114 | + <waitForPageLoad stepKey="waitForPanelSlideOut"/> |
| 115 | + <waitForElementVisible selector="{{WidgetSection.InsertWidget}}" stepKey="waitForInsertWidget2"/> |
| 116 | + <click selector="{{WidgetSection.InsertWidget}}" stepKey="clickInsertWidget2"/> |
| 117 | + <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear5"/> |
| 118 | + <waitForElementNotVisible selector="{{WidgetSection.InsertWidget}}" stepKey="waitForInsertWidgetModalToClose"/> |
| 119 | + <waitForElementVisible selector="{{TextOnConfiguration.textArea}}" stepKey="waitForTextArea"/> |
| 120 | + <executeJS function="return document.getElementById('{{TextOnConfiguration.textAreaId}}').value;" stepKey="getText"/> |
| 121 | + <assertContains actual="getText" actualType="variable" expected="{{widget.editPanelValue}}" expectedType="string" stepKey="assertValue"/> |
| 122 | + </actionGroup> |
| 123 | + <actionGroup name="validateTextInTinyMCE"> |
| 124 | + <arguments> |
| 125 | + <argument name="property" defaultValue=""/> |
| 126 | + <argument name="section" defaultValue="TextOnConfiguration"/> |
| 127 | + </arguments> |
| 128 | + <comment userInput="Validating Text In Tiny MCE" stepKey="commentValidateTextTinyMCE"/> |
| 129 | + <waitForElementVisible selector="#{{section.tinyMCEIFrame}}" stepKey="waitForIFrame"/> |
| 130 | + <switchToIFrame selector="{{section.tinyMCEIFrame}}" stepKey="switchToIFrame"/> |
| 131 | + <waitForElementVisible selector="{{section.textInIFrame(property.value)}}" stepKey="waitForTextVisible"/> |
| 132 | + <switchToIFrame stepKey="exitIFrame"/> |
| 133 | + </actionGroup> |
74 | 134 | </actionGroups>
|
0 commit comments