|
21 | 21 | <before>
|
22 | 22 | <actionGroup ref="LoginActionGroup" stepKey="loginGetFromGeneralFile"/>
|
23 | 23 | <actionGroup ref="EnabledWYSIWYG" stepKey="enableWYSIWYG"/>
|
24 |
| - <comment userInput="Choose TinyMCE3 as the default editor" stepKey="chooseTinyMCE3AsEditor"/> |
25 |
| - <waitForElementVisible selector="{{ContentManagementSection.SwitcherSystemValue}}" stepKey="waitForCheckbox1" /> |
26 |
| - <uncheckOption selector="{{ContentManagementSection.SwitcherSystemValue}}" stepKey="uncheckUseSystemValue2"/> |
27 |
| - <waitForElementVisible selector="{{ContentManagementSection.Switcher}}" stepKey="waitForSwitcherDropdown1" /> |
28 |
| - <selectOption selector="{{ContentManagementSection.Switcher}}" userInput="TinyMCE 3" stepKey="switchToVersion3" /> |
29 |
| - <click selector="{{ContentManagementSection.WYSIWYGOptions}}" stepKey="collapseWYSIWYGOptions1" /> |
30 |
| - <click selector="{{ContentManagementSection.Save}}" stepKey="saveConfig1" /> |
| 24 | + <!-- Choose TinyMCE3 as the default WYSIWYG editor--> |
| 25 | + <actionGroup ref="SwitchToTinyMCE3" stepKey="switchToTinyMCE3"/> |
31 | 26 | </before>
|
32 | 27 | <after>
|
| 28 | + <!-- Switch WYSIWYG editor to TinyMCE4--> |
33 | 29 | <comment userInput="Reset editor as TinyMCE4" stepKey="chooseTinyMCE4AsEditor"/>
|
34 |
| - <amOnPage url="{{ConfigurationStoresPage.url}}" stepKey="navigateToConfigurationPage" /> |
35 |
| - <waitForPageLoad stepKey="waitForConfigPageToReload"/> |
36 |
| - <conditionalClick stepKey="expandWYSIWYGOptions" selector="{{ContentManagementSection.WYSIWYGOptions}}" dependentSelector="{{ContentManagementSection.CheckIfTabExpand}}" visible="true" /> |
37 |
| - <waitForElementVisible selector="{{ContentManagementSection.SwitcherSystemValue}}" stepKey="waitForCheckbox2" /> |
38 |
| - |
39 |
| - <waitForElementVisible selector="{{ContentManagementSection.Switcher}}" stepKey="waitForSwitcherDropdown3" /> |
40 |
| - <selectOption selector="{{ContentManagementSection.Switcher}}" userInput="TinyMCE 4" stepKey="switchToVersion4" /> |
41 |
| - <checkOption selector="{{ContentManagementSection.SwitcherSystemValue}}" stepKey="checkUseSystemValue2"/> |
42 |
| - <click selector="{{ContentManagementSection.WYSIWYGOptions}}" stepKey="collapseWYSIWYGOptions2" /> |
43 |
| - <click selector="{{ContentManagementSection.Save}}" stepKey="saveConfig2" /> |
| 30 | + <actionGroup ref="SwitchToVersion4ActionGroup" stepKey="switchToTinyMCE4"/> |
44 | 31 | <actionGroup ref="logout" stepKey="logOut"/>
|
45 | 32 | </after>
|
46 | 33 | <amOnPage url="{{CmsNewPagePage.url}}" stepKey="navigateToPage2"/>
|
|
52 | 39 | <comment userInput="Click Insert image button" stepKey="clickImageButton"/>
|
53 | 40 | <click selector="{{TinyMCESection.InsertImageBtnTinyMCE3}}" stepKey="clickInsertImage" />
|
54 | 41 | <waitForPageLoad stepKey="waitForiFrameToLoad" />
|
55 |
| - <comment userInput="switching to iFrame" stepKey="iFramecomment"/> |
| 42 | + <!-- Switch to the Edit/Insert Image iFrame --> |
| 43 | + <comment userInput="Switching to iFrame" stepKey="insertImageiFrame"/> |
56 | 44 | <executeJS function="document.querySelector('.clearlooks2 iframe').setAttribute('name', 'insert-image');" stepKey="makeIFrameInteractable"/>
|
57 | 45 | <switchToIFrame selector="insert-image" stepKey="switchToIFrame"/>
|
58 | 46 | <click selector="{{MediaGallerySection.browseForImage}}" stepKey="clickBrowse"/>
|
|
65 | 53 | <argument name="Image" value="ImageUpload"/>
|
66 | 54 | </actionGroup>
|
67 | 55 | <actionGroup ref="saveImage" stepKey="insertImage"/>
|
| 56 | + <!-- Switching back to the Edit/Insert Image iFrame--> |
68 | 57 | <comment userInput="switching back to iFrame" stepKey="switchBackToIFrame"/>
|
69 | 58 | <executeJS function="document.querySelector('.clearlooks2 iframe').setAttribute('name', 'insert-image');" stepKey="makeIFrameInteractable2"/>
|
70 | 59 | <switchToIFrame selector="insert-image" stepKey="switchToIFrame2"/>
|
71 | 60 | <waitForElementVisible selector="{{MediaGallerySection.insertBtn}}" stepKey="waitForInsertBtnOnIFrame" />
|
72 |
| - <fillField selector="{{MediaGallerySection.ImageDescription}}" userInput="{{ImageUpload.content}}" stepKey="fillImageDescription" /> |
| 61 | + <fillField selector="{{MediaGallerySection.ImageDescriptionTinyMCE3}}" userInput="{{ImageUpload.content}}" stepKey="fillImageDescription" /> |
73 | 62 | <click selector="{{MediaGallerySection.insertBtn}}" stepKey="clickInsertBtn" />
|
74 | 63 | <waitForPageLoad stepKey="wait3"/>
|
75 | 64 | <click selector="{{CmsNewPagePageActionsSection.expandSplitButton}}" stepKey="expandButtonMenu"/>
|
|
0 commit comments