|
22 | 22 | <waitForElementVisible selector="{{section.textInIFrame(property.value)}}" stepKey="waitForTextVisible"/>
|
23 | 23 | <switchToIFrame stepKey="exitIFrame"/>
|
24 | 24 | </actionGroup>
|
| 25 | + <actionGroup name="addTextToTinyMCEInline"> |
| 26 | + <arguments> |
| 27 | + <argument name="section"/> |
| 28 | + <argument name="text" defaultValue="{{PageBuilderTextProperty.value}}" type="string"/> |
| 29 | + <argument name="index" defaultValue="1" type="string"/> |
| 30 | + <argument name="pageBuilderArea" defaultValue="" type="string"/> |
| 31 | + </arguments> |
| 32 | + <comment userInput="addTextToTinyMCEInline" stepKey="comment"/> |
| 33 | + <waitForElementVisible selector="{{section.tinymceInFocus(index)}}" stepKey="waitForEditorFocused"/> |
| 34 | + <pressKey selector="{{section.tinymce(index)}}" userInput="{{text}}" stepKey="enterText"/> |
| 35 | + <waitForPageLoad stepKey="waitForTextEdit"/> |
| 36 | + <click selector="{{pageBuilderArea}}{{PageBuilderPanel.searchPanel}}" stepKey="loseFocusFromEditor"/> |
| 37 | + <waitForPageLoad stepKey="waitForUnFocus"/> |
| 38 | + </actionGroup> |
| 39 | + <actionGroup name="addTextToTinyMCEInlineWYSIWYGDisabled" extends="addTextToTinyMCEInline"> |
| 40 | + <comment userInput="addTextToTinyMCEInlineWYSIWYGDisabled" stepKey="comment"/> |
| 41 | + <waitForElementVisible selector="{{section.textArea(index)}}" stepKey="waitForEditorFocused"/> |
| 42 | + <pressKey selector="{{section.textArea(index)}}" userInput="{{text}}" stepKey="enterText"/> |
| 43 | + <waitForPageLoad stepKey="waitForTextEdit"/> |
| 44 | + <click selector="{{pageBuilderArea}}{{PageBuilderPanel.searchPanel}}" stepKey="loseFocusFromEditor"/> |
| 45 | + <waitForPageLoad stepKey="waitForUnFocus"/> |
| 46 | + </actionGroup> |
25 | 47 | <actionGroup name="replaceTextToTinyMCE" extends="addTextToTinyMCE">
|
26 | 48 | <executeJS function="tinymce.activeEditor.setContent('{{property.value}}')" stepKey="addTextToWYSIWYG"/>
|
27 | 49 | </actionGroup>
|
|
159 | 181 | <argument name="selector" type="string"/>
|
160 | 182 | <argument name="value" type="string"/>
|
161 | 183 | </arguments>
|
162 |
| - <executeJS function="return Boolean(document.evaluate("{{selector}}", document.body).iterateNext().value.match('{{value}}'))" stepKey="textareaValue"/> |
163 |
| - <assertEquals stepKey="assertTextareaContainsValue"> |
164 |
| - <expectedResult type="bool">true</expectedResult> |
| 184 | + <executeJS function="return document.evaluate("{{selector}}", document.body).iterateNext().value" stepKey="textareaValue"/> |
| 185 | + <assertContains stepKey="assertTextareaContainsValue"> |
| 186 | + <expectedResult type="string">{{value}}</expectedResult> |
165 | 187 | <actualResult type="variable">textareaValue</actualResult>
|
166 |
| - </assertEquals> |
| 188 | + </assertContains> |
| 189 | + </actionGroup> |
| 190 | + <actionGroup name="clickInsertImageInTinyMCE"> |
| 191 | + <!-- This goes in CE repo --> |
| 192 | + <comment userInput="clickInsertImageInTinyMCE" stepKey="comment"/> |
| 193 | + <waitForElementVisible selector="{{TinyMCESection.InsertImageIcon}}" stepKey="waitForInsertImageIcon"/> |
| 194 | + <click selector="{{TinyMCESection.InsertImageIcon}}" stepKey="clickInsertImageIcon"/> |
| 195 | + <waitForPageLoad stepKey="waitForPageLoad" /> |
| 196 | + <waitForElementVisible selector="{{MediaGallerySection.Browse}}" stepKey="waitForBrowseImagesButton"/> |
| 197 | + </actionGroup> |
| 198 | + <actionGroup name="clickMediaGalleryStorageRootArrow"> |
| 199 | + <!-- This goes in CE repo --> |
| 200 | + <click selector="{{MediaGallerySection.StorageRootArrow}}" stepKey="clickStorageRootArrow"/> |
| 201 | + <waitForPageLoad stepKey="waitForPageLoad2"/> |
| 202 | + <waitForElement selector="{{MediaGallerySection.StorageRootArrowClicked}}" stepKey="waitForStorageRootArrowClicked"/> |
167 | 203 | </actionGroup>
|
168 | 204 | </actionGroups>
|
0 commit comments