|
2838 | 2838 | <actionGroup ref="unFocusOptionMenu" stepKey="unFocusEditor">
|
2839 | 2839 | <argument name="contentType" value="PageBuilderTextContentType"/>
|
2840 | 2840 | </actionGroup>
|
2841 |
| - <click selector="{{TextOnStage.directive('1', TinyMCEVariableBaseURL.editPanelValue)}}" stepKey="clickOnWidgetPlaceholder"/> |
2842 |
| - <waitForElementVisible selector="{{TextOnStage.directiveFocused('1', TinyMCEVariableBaseURL.editPanelValue)}}" stepKey="waitForDirectiveFocused"/> |
2843 |
| - <seeElement selector="{{TextOnStage.directiveFocused('1', TinyMCEVariableBaseURL.editPanelValue)}}" stepKey="verifyDirectiveIsFocused"/> |
| 2841 | + <actionGroup ref="clickDirectiveTinyMCE" stepKey="clickDirectiveTinyMCE"> |
| 2842 | + <argument name="directive" value="TinyMCEVariableBaseURL" /> |
| 2843 | + </actionGroup> |
| 2844 | + <actionGroup ref="seeDirectiveFocusedTinyMCE" stepKey="seeDirectiveFocusedTinyMCE"> |
| 2845 | + <argument name="directive" value="TinyMCEVariableBaseURL" /> |
| 2846 | + </actionGroup> |
2844 | 2847 | <!-- Save page and verify single clicking on widget will retain selection -->
|
2845 | 2848 | <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/>
|
2846 | 2849 | <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
|
2847 |
| - <click selector="{{TextOnStage.directive('1', TinyMCEVariableBaseURL.editPanelValue)}}" stepKey="clickOnWidgetPlaceholder2"/> |
2848 |
| - <waitForElementVisible selector="{{TextOnStage.tinymceInFocus('1')}}" stepKey="waitForTinyMCEFocus"/> |
2849 |
| - <waitForElementVisible selector="{{TextOnStage.directiveFocused('1', TinyMCEVariableBaseURL.editPanelValue)}}" stepKey="waitForDirectiveFocused2"/> |
2850 |
| - <seeElement selector="{{TextOnStage.directiveFocused('1', TinyMCEVariableBaseURL.editPanelValue)}}" stepKey="verifyDirectiveIsFocused2"/> |
| 2850 | + <actionGroup ref="clickDirectiveTinyMCE" stepKey="clickDirectiveTinyMCE2"> |
| 2851 | + <argument name="directive" value="TinyMCEVariableBaseURL" /> |
| 2852 | + </actionGroup> |
| 2853 | + <actionGroup ref="waitForTinyMCEFocus" stepKey="waitForTinyMCEFocus" /> |
| 2854 | + <actionGroup ref="seeDirectiveFocusedTinyMCE" stepKey="seeDirectiveFocusedTinyMCE2"> |
| 2855 | + <argument name="directive" value="TinyMCEVariableBaseURL" /> |
| 2856 | + </actionGroup> |
2851 | 2857 | </test>
|
2852 | 2858 | <test name="TextAddWidgetWithinStringInlineWYSIWYG">
|
2853 | 2859 | <annotations>
|
|
2902 | 2908 | <actionGroup ref="unFocusOptionMenu" stepKey="unFocusEditor">
|
2903 | 2909 | <argument name="contentType" value="PageBuilderTextContentType"/>
|
2904 | 2910 | </actionGroup>
|
2905 |
| - <click selector="{{TextOnStage.directive('1', TinyMCEWidgetCMSPageLink.editPanelValue)}}" stepKey="clickOnWidgetPlaceholder"/> |
2906 |
| - <waitForElementVisible selector="{{TextOnStage.directiveFocused('1', TinyMCEWidgetCMSPageLink.editPanelValue)}}" stepKey="waitForDirectiveFocused"/> |
2907 |
| - <seeElement selector="{{TextOnStage.directiveFocused('1', TinyMCEWidgetCMSPageLink.editPanelValue)}}" stepKey="verifyDirectiveIsFocused"/> |
| 2911 | + <actionGroup ref="clickDirectiveTinyMCE" stepKey="clickDirectiveTinyMCE"> |
| 2912 | + <argument name="directive" value="TinyMCEWidgetCMSPageLink" /> |
| 2913 | + </actionGroup> |
| 2914 | + <actionGroup ref="seeDirectiveFocusedTinyMCE" stepKey="seeDirectiveFocusedTinyMCE"> |
| 2915 | + <argument name="directive" value="TinyMCEWidgetCMSPageLink" /> |
| 2916 | + </actionGroup> |
2908 | 2917 | <!-- Save page and verify single clicking on widget will retain selection -->
|
2909 | 2918 | <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/>
|
2910 | 2919 | <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
|
2911 |
| - <click selector="{{TextOnStage.directive('1', TinyMCEWidgetCMSPageLink.editPanelValue)}}" stepKey="clickOnWidgetPlaceholder2"/> |
2912 |
| - <waitForElementVisible selector="{{TextOnStage.tinymceInFocus('1')}}" stepKey="waitForTinyMCEFocus"/> |
2913 |
| - <waitForElementVisible selector="{{TextOnStage.directiveFocused('1', TinyMCEWidgetCMSPageLink.editPanelValue)}}" stepKey="waitForDirectiveFocused2"/> |
2914 |
| - <seeElement selector="{{TextOnStage.directiveFocused('1', TinyMCEWidgetCMSPageLink.editPanelValue)}}" stepKey="verifyDirectiveIsFocused2"/> |
| 2920 | + <actionGroup ref="clickDirectiveTinyMCE" stepKey="clickDirectiveTinyMCE2"> |
| 2921 | + <argument name="directive" value="TinyMCEWidgetCMSPageLink" /> |
| 2922 | + </actionGroup> |
| 2923 | + <actionGroup ref="waitForTinyMCEFocus" stepKey="waitForTinyMCEFocus" /> |
| 2924 | + <actionGroup ref="seeDirectiveFocusedTinyMCE" stepKey="seeDirectiveFocusedTinyMCE2"> |
| 2925 | + <argument name="directive" value="TinyMCEWidgetCMSPageLink" /> |
| 2926 | + </actionGroup> |
2915 | 2927 | </test>
|
2916 | 2928 | <test name="TextCopyAndPasteAllTextInlineWYSIWYG">
|
2917 | 2929 | <annotations>
|
|
3052 | 3064 | <actionGroup ref="addVariableToTinyMCEInline" stepKey="addVariableToTinyMCE">
|
3053 | 3065 | <argument name="variable" value="TinyMCEVariableBaseURL"/>
|
3054 | 3066 | </actionGroup>
|
3055 |
| - <waitForElementVisible selector="{{TextOnStage.text('1', TinyMCEVariableBaseURL.editPanelValue)}}" stepKey="waitForVariable"/> |
3056 |
| - <seeElement selector="{{TextOnStage.text('1', TinyMCEVariableBaseURL.editPanelValue)}}" stepKey="seeVariableOnStage"/> |
| 3067 | + <actionGroup ref="seeVariableTinyMCE" stepKey="seeVariableTinyMCE"> |
| 3068 | + <argument name="variable" value="TinyMCEVariableBaseURL"/> |
| 3069 | + </actionGroup> |
3057 | 3070 | <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/>
|
3058 | 3071 | <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
|
3059 |
| - <scrollTo selector="{{TextOnStage.tinymce('1')}}" stepKey="scrollToTinyMCE"/> |
| 3072 | + <actionGroup ref="scrollToTinyMCE" stepKey="scrollToTinyMCE"/> |
3060 | 3073 | <!-- Select portion of Heading "his is a h" -->
|
3061 | 3074 | <executeInSelenium function="function ($webdriver) use ($I) {
|
3062 | 3075 | $heading = $webdriver->findElement(\Facebook\WebDriver\WebDriverBy::xpath('//div[contains(@class, \'inline-wysiwyg\')]//h2'));
|
|
3068 | 3081 | ->perform();
|
3069 | 3082 | }" stepKey="selectHeadingTextInTinyMCE"/>
|
3070 | 3083 | <waitForElementVisible selector="{{TextOnStage.tinymceInFocus('1')}}" stepKey="waitForTinyMCEFocus"/>
|
3071 |
| - <executeJS function="return window.getSelection().toString()" stepKey="selectionHeadingString"/> |
3072 |
| - <assertEquals stepKey="assertSelectionText"> |
3073 |
| - <expectedResult type="string">{{TinyMCEPartialHeadingSelection.selection}}</expectedResult> |
3074 |
| - <actualResult type="variable">selectionHeadingString</actualResult> |
3075 |
| - </assertEquals> |
| 3084 | + <actionGroup ref="assertSelectedTextTinyMCE" stepKey="assertSelection"> |
| 3085 | + <argument name="expected" value="TinyMCEPartialHeadingSelection"/> |
| 3086 | + </actionGroup> |
3076 | 3087 | <reloadPage stepKey="reloadPage" />
|
3077 | 3088 | <waitForPageLoad stepKey="waitForReload" />
|
3078 | 3089 | <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage2"/>
|
3079 |
| - <scrollTo selector="{{TextOnStage.tinymce('1')}}" stepKey="scrollToTinyMCE2"/> |
| 3090 | + <actionGroup ref="scrollToTinyMCE" stepKey="scrollToTinyMCE2"/> |
3080 | 3091 | <!-- Select portion of paragraph text "es stri" -->
|
3081 | 3092 | <executeInSelenium function="function ($webdriver) use ($I) {
|
3082 | 3093 | $text = $webdriver->findElement(\Facebook\WebDriver\WebDriverBy::xpath('//div[contains(@class, \'inline-wysiwyg\')]//p[2]'));
|
|
3088 | 3099 | ->perform();
|
3089 | 3100 | }" stepKey="selectTextInTinyMCE"/>
|
3090 | 3101 | <waitForElementVisible selector="{{TextOnStage.tinymceInFocus('1')}}" stepKey="waitForTinyMCEFocus2"/>
|
3091 |
| - <executeJS function="return window.getSelection().toString()" stepKey="selectionTextString"/> |
3092 |
| - <assertEquals stepKey="assertSelectionText2"> |
3093 |
| - <expectedResult type="string">{{TinyMCEPartialTextSelection.selection}}</expectedResult> |
3094 |
| - <actualResult type="variable">selectionTextString</actualResult> |
3095 |
| - </assertEquals> |
| 3102 | + <actionGroup ref="assertSelectedTextTinyMCE" stepKey="assertSelection2"> |
| 3103 | + <argument name="expected" value="TinyMCEPartialTextSelection"/> |
| 3104 | + </actionGroup> |
3096 | 3105 | <reloadPage stepKey="reloadPage2" />
|
3097 | 3106 | <waitForPageLoad stepKey="waitForReload2" />
|
3098 | 3107 | <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage3"/>
|
3099 |
| - <scrollTo selector="{{TextOnStage.tinymce('1')}}" stepKey="scrollToTinyMCE3"/> |
| 3108 | + <actionGroup ref="scrollToTinyMCE" stepKey="scrollToTinyMCE3"/> |
3100 | 3109 | <!-- Select from part of the heading, over the variable, to part of the text string -->
|
3101 | 3110 | <executeInSelenium function="function ($webdriver) use ($I) {
|
3102 | 3111 | $heading = $webdriver->findElement(\Facebook\WebDriver\WebDriverBy::xpath('//div[contains(@class, \'inline-wysiwyg\')]//h2'));
|
|
3109 | 3118 | ->perform();
|
3110 | 3119 | }" stepKey="selectHeadingTextAndVariableTinyMCE"/>
|
3111 | 3120 | <waitForElementVisible selector="{{TextOnStage.tinymceInFocus('1')}}" stepKey="waitForTinyMCEFocus3"/>
|
3112 |
| - <executeJS function="return window.getSelection().toString()" stepKey="selectionMultipleString"/> |
3113 |
| - <assertEquals stepKey="assertSelectionText3"> |
3114 |
| - <expectedResult type="string">{{TinyMCEHeadingVariableTextSelection.selection}}</expectedResult> |
3115 |
| - <actualResult type="variable">selectionMultipleString</actualResult> |
3116 |
| - </assertEquals> |
| 3121 | + <actionGroup ref="assertSelectedTextTinyMCE" stepKey="assertSelection3"> |
| 3122 | + <argument name="expected" value="TinyMCEHeadingVariableTextSelection"/> |
| 3123 | + </actionGroup> |
3117 | 3124 | </test>
|
3118 | 3125 | </tests>
|
0 commit comments