|
36 | 36 | <click selector="{{VariableSection.InsertWidget}}" stepKey="clickInsertVariable2"/>
|
37 | 37 | <waitForElementNotVisible selector="{{VariableSection.InsertWidget}}" stepKey="waitForVariableModalToClose"/>
|
38 | 38 | </actionGroup>
|
| 39 | + <actionGroup name="addVariableToTinyMCE3" extends="addVariableToTinyMCE"> |
| 40 | + <arguments> |
| 41 | + <argument name="variable" defaultValue=""/> |
| 42 | + </arguments> |
| 43 | + <comment userInput="Adding Variable To TinyMCE3" stepKey="commentAddVariableToTinyMCE"/> |
| 44 | + <waitForElementVisible selector="{{TextOnConfiguration.tinyMCE3VariableBtn}}" stepKey="waitForInsertVariable1"/> |
| 45 | + <click selector="{{TextOnConfiguration.tinyMCE3VariableBtn}}" stepKey="clickInsertVariable1"/> |
| 46 | + <waitForElementVisible selector="{{TextOnConfiguration.tinyMCE3VariableBtn}}" stepKey="waitForVariableModalToClose"/> |
| 47 | + </actionGroup> |
39 | 48 | <actionGroup name="addPageLinkVariableWYSIWYGDisabled">
|
40 | 49 | <arguments>
|
41 | 50 | <argument name="variable" defaultValue=""/>
|
42 | 51 | </arguments>
|
43 |
| - <comment userInput="Adding Variable To Tiny MCE" stepKey="commentAddVariableToTinyMCE"/> |
44 | 52 | <waitForElementVisible selector="{{TextOnConfiguration.insertVariableButton}}" stepKey="waitForInsertVariable1"/>
|
45 | 53 | <click selector="{{TextOnConfiguration.insertVariableButton}}" stepKey="clickInsertVariable1"/>
|
46 | 54 | <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear"/>
|
|
58 | 66 | <argument name="widget" defaultValue=""/>
|
59 | 67 | <argument name="page" defaultValue="" type="string"/>
|
60 | 68 | </arguments>
|
61 |
| - <comment userInput="Adding Widget To Tiny MCE" stepKey="commentAddWidgetToTinyMCE"/> |
| 69 | + <comment userInput="Adding Widget To Tiny MCE" stepKey="commentAddWidget"/> |
62 | 70 | <waitForElementVisible selector="{{TinyMCESection.InsertWidgetIcon}}" stepKey="waitForInsertWidget1"/>
|
63 |
| - <click selector="{{TinyMCESection.InsertWidgetIcon}}" stepKey="clickInsertWidget1"/> |
| 71 | + <click selector="{{TinyMCESection.InsertWidgetIcon}}" stepKey="clickAddWidgetBtn"/> |
64 | 72 | <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear"/>
|
65 | 73 | <waitForElementVisible selector="{{WidgetSection.WidgetType}}" stepKey="waitForWidgetType"/>
|
66 | 74 | <selectOption selector="{{WidgetSection.WidgetType}}" userInput="{{TinyMCEWidgetCMSPageLink.widgetType}}" stepKey="selectCMSPageLinkWidget"/>
|
|
82 | 90 | <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear5"/>
|
83 | 91 | <waitForElementNotVisible selector="{{WidgetSection.InsertWidget}}" stepKey="waitForInsertWidgetModalToClose"/>
|
84 | 92 | </actionGroup>
|
85 |
| - <actionGroup name="addPageLinkWidgetWYSIWYGDisabled"> |
| 93 | + <actionGroup name="addPageLinkWidgetToTinyMCE3" extends="addPageLinkWidgetToTinyMCE"> |
86 | 94 | <arguments>
|
87 | 95 | <argument name="widget" defaultValue=""/>
|
88 | 96 | <argument name="page" defaultValue="" type="string"/>
|
89 | 97 | </arguments>
|
90 |
| - <comment userInput="Adding Widget" stepKey="commentAddWidget"/> |
| 98 | + <comment userInput="Adding Widget To TinyMCE3" stepKey="commentAddWidget"/> |
| 99 | + <waitForElementVisible selector="{{TextOnConfiguration.tinyMCE3WidgetBtn}}" stepKey="waitForInsertWidget1"/> |
| 100 | + <click selector="{{TextOnConfiguration.tinyMCE3WidgetBtn}}" stepKey="clickAddWidgetBtn"/> |
| 101 | + <waitForElementVisible selector="{{TextOnConfiguration.tinyMCE3WidgetBtn}}" stepKey="waitForInsertWidgetModalToClose"/> |
| 102 | + </actionGroup> |
| 103 | + <actionGroup name="addPageLinkWidgetWYSIWYGDisabled" extends="addPageLinkWidgetToTinyMCE"> |
| 104 | + <arguments> |
| 105 | + <argument name="widget" defaultValue=""/> |
| 106 | + <argument name="page" defaultValue="" type="string"/> |
| 107 | + </arguments> |
| 108 | + <comment userInput="Adding Widget To Textarea" stepKey="commentAddWidget"/> |
91 | 109 | <waitForElementVisible selector="{{TextOnConfiguration.insertWidgetButton}}" stepKey="waitForInsertWidget1"/>
|
92 |
| - <click selector="{{TextOnConfiguration.insertWidgetButton}}" stepKey="clickInsertWidget1"/> |
93 |
| - <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear"/> |
94 |
| - <waitForElementVisible selector="{{WidgetSection.WidgetType}}" stepKey="waitForWidgetType"/> |
95 |
| - <selectOption selector="{{WidgetSection.WidgetType}}" userInput="{{TinyMCEWidgetCMSPageLink.widgetType}}" stepKey="selectCMSPageLinkWidget"/> |
96 |
| - <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear2"/> |
97 |
| - <waitForElementVisible selector="{{moveToCE.SelectPageButton}}" stepKey="waitForSelectPage"/> |
98 |
| - <click selector="{{moveToCE.SelectPageButton}}" stepKey="clickSelectPage"/> |
99 |
| - <waitForLoadingMaskToDisappear stepKey="waitForSelectPageModal"/> |
100 |
| - <waitForElementVisible selector="{{moveToCE.generalFilter('chooser_title')}}" stepKey="waitForGrid"/> |
101 |
| - <fillField selector="{{moveToCE.generalFilter('chooser_title')}}" userInput="{{page}}" stepKey="enterPageName"/> |
102 |
| - <click selector="{{AdminProductGridFilterSection.applyFilters}}" stepKey="clickSearch"/> |
103 |
| - <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear3"/> |
104 |
| - <waitForElementVisible selector="//td[contains(@class,'col-url')][contains(text(),'{{page}}')]" stepKey="waitForSearchResult"/> |
105 |
| - <click selector="//td[contains(@class,'col-url')][contains(text(),'{{page}}')]" stepKey="clickCmsPageLinkRow"/> |
106 |
| - <waitForElementNotVisible selector="//td[contains(@class,'col-url')][contains(text(),'{{page}}')]" stepKey="waitForPageSelectionModalToClose"/> |
107 |
| - <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear4"/> |
108 |
| - <waitForPageLoad stepKey="waitForPanelSlideOut"/> |
109 |
| - <waitForElementVisible selector="{{WidgetSection.InsertWidget}}" stepKey="waitForInsertWidget2"/> |
110 |
| - <click selector="{{WidgetSection.InsertWidget}}" stepKey="clickInsertWidget2"/> |
111 |
| - <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear5"/> |
112 |
| - <waitForElementNotVisible selector="{{WidgetSection.InsertWidget}}" stepKey="waitForInsertWidgetModalToClose"/> |
113 |
| - <waitForElementVisible selector="{{TextOnConfiguration.textArea}}" stepKey="waitForTextArea"/> |
| 110 | + <click selector="{{TextOnConfiguration.insertWidgetButton}}" stepKey="clickAddWidgetBtn"/> |
| 111 | + <waitForElementVisible selector="{{TextOnConfiguration.textArea}}" stepKey="waitForInsertWidgetModalToClose"/> |
114 | 112 | <executeJS function="return document.getElementById('{{TextOnConfiguration.textAreaId}}').value;" stepKey="getText"/>
|
115 | 113 | <assertContains actual="getText" actualType="variable" expected="{{widget.editPanelValue}}" expectedType="string" stepKey="assertValue"/>
|
116 | 114 | </actionGroup>
|
|
144 | 142 | <waitForPageLoad stepKey="waitForPageLoad2"/>
|
145 | 143 | <waitForElementNotVisible selector="{{WYSIWYGInsertLinkModal.modal}}" stepKey="waitForInsertLinkModalGone"/>
|
146 | 144 | </actionGroup>
|
| 145 | + <actionGroup name="assertTextareaContainsValue"> |
| 146 | + <arguments> |
| 147 | + <argument name="selector" type="string"/> |
| 148 | + <argument name="value" type="string"/> |
| 149 | + </arguments> |
| 150 | + <executeJS function="return Boolean(document.evaluate("{{selector}}", document.body).iterateNext().value.match('{{value}}'))" stepKey="textareaValue"/> |
| 151 | + <assertEquals stepKey="assertTextareaContainsValue"> |
| 152 | + <expectedResult type="bool">true</expectedResult> |
| 153 | + <actualResult type="variable">textareaValue</actualResult> |
| 154 | + </assertEquals> |
| 155 | + </actionGroup> |
147 | 156 | </actionGroups>
|
0 commit comments