|
57 | 57 | <argument name="contentType" value="PageBuilderTextContentType"/>
|
58 | 58 | </actionGroup>
|
59 | 59 | <!-- Add image to TextArea -->
|
60 |
| - <comment userInput="Add image to TextArea" stepKey="comment1"/> |
61 |
| - <waitForElementVisible selector="{{TextOnConfiguration.insertImageButton}}" stepKey="waitForInsertImage"/> |
62 |
| - <click selector="{{TextOnConfiguration.insertImageButton}}" stepKey="clickInsertImage"/> |
63 |
| - <actionGroup ref="CreateImageFolder" stepKey="CreateImageFolder"> |
64 |
| - <argument name="ImageFolder" value="ImageFolder"/> |
65 |
| - </actionGroup> |
66 |
| - <actionGroup ref="attachImage" stepKey="attachImage1"> |
67 |
| - <argument name="Image" value="ImageUpload3"/> |
68 |
| - </actionGroup> |
69 |
| - <actionGroup ref="saveImage" stepKey="insertImage"/> |
| 60 | + <!--<comment userInput="Add image to TextArea" stepKey="comment1"/>--> |
| 61 | + <!--<waitForElementVisible selector="{{TextOnConfiguration.insertImageButton}}" stepKey="waitForInsertImage"/>--> |
| 62 | + <!--<click selector="{{TextOnConfiguration.insertImageButton}}" stepKey="clickInsertImage"/>--> |
| 63 | + <!--<actionGroup ref="CreateImageFolder" stepKey="CreateImageFolder">--> |
| 64 | + <!--<argument name="ImageFolder" value="ImageFolder"/>--> |
| 65 | + <!--</actionGroup>--> |
| 66 | + <!--<actionGroup ref="attachImage" stepKey="attachImage1">--> |
| 67 | + <!--<argument name="Image" value="ImageUpload3"/>--> |
| 68 | + <!--</actionGroup>--> |
| 69 | + <!--<actionGroup ref="saveImage" stepKey="insertImage"/>--> |
70 | 70 | <!-- Add widget to TextArea -->
|
71 | 71 | <comment userInput="Add widget to TextArea" stepKey="comment2"/>
|
72 | 72 | <actionGroup ref="addPageLinkWidgetWYSIWYGDisabled" stepKey="addPageLinkWidgetWYSIWYGDisabled">
|
|
78 | 78 | <actionGroup ref="addPageLinkVariableWYSIWYGDisabled" stepKey="addPageLinkVariableWYSIWYGDisabled">
|
79 | 79 | <argument name="variable" value="PageBuilderTextArea_VariableBaseURL"/>
|
80 | 80 | </actionGroup>
|
| 81 | + <executeJS function="return document.getElementById('{{TextOnConfiguration.textAreaId}}').value;" stepKey="expectedData"/> |
81 | 82 | <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/>
|
82 | 83 | <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage3"/>
|
83 | 84 | <!-- Switch to TinyMCE4 -->
|
|
89 | 90 | <reloadPage stepKey="reloadPage"/>
|
90 | 91 | <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage3"/>
|
91 | 92 | <waitForElementVisible selector="{{TextOnStage.tinymce('1')}}" stepKey="waitforTinyMCE4"/>
|
92 |
| - <waitForElementVisible selector="//*[contains(@class, 'pagebuilder-text')]//*[text()='{{PageBuilderTextProperty.value}}']" stepKey="waitForText"/> |
93 |
| - <waitForElementVisible selector="{{TextOnStage.tinymce('1')}}{{CmsWYSIWYGSection.imageSource(ImageUpload3.fileName)}}" stepKey="assertMediaSourceOnStage2"/> |
| 93 | + <!--<waitForElementVisible selector="//*[contains(@class, 'pagebuilder-text')]//*[text()='{{PageBuilderTextProperty.value}}']" stepKey="waitForText"/>--> |
| 94 | + <waitForElementVisible selector="{{TextOnStage.textString('1', PageBuilderTextProperty.value})}}" stepKey="waitForText"/> |
| 95 | + <!--<waitForElementVisible selector="{{TextOnStage.tinymce('1')}}{{CmsWYSIWYGSection.imageSource(ImageUpload3.fileName)}}" stepKey="assertMediaSourceOnStage2"/>--> |
94 | 96 | <waitForElementVisible selector="{{TextOnStage.text('1', TinyMCEVariableBaseURL.editPanelValue)}}" stepKey="waitForVariabBaseURL"/>
|
95 | 97 | <waitForElementVisible selector="{{TextOnStage.variablePlaceholder('1')}}" stepKey="waitForVariablePlaceholder"/>
|
96 | 98 | <waitForElementVisible selector="{{TextOnStage.text('1', TinyMCEWidgetCMSPageLink.editPanelValue)}}" stepKey="waitForWidgetValue"/>
|
97 | 99 | <waitForElementVisible selector="{{TextOnStage.widgetPlaceholder('1')}}" stepKey="waitForWidgetPlaceholder"/>
|
98 |
| - <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings1"/> |
| 100 | + <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage4"/> |
99 | 101 | <!-- Switch to TinyMCE3 -->
|
100 | 102 | <comment userInput="Switch to TinyMCE3" stepKey="comment6"/>
|
101 | 103 | <magentoCLI command="config:set cms/wysiwyg/editor Magento_Tinymce3/tinymce3Adapter" stepKey="enableTinyMCE3"/>
|
102 | 104 | <reloadPage stepKey="reloadPage1"/>
|
103 | 105 | <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage4"/>
|
104 |
| - <executeJS function="return document.evaluate("{{TextOnStage.textArea('1')}}", document.body).iterateNext().value" stepKey="textareaValue"/> |
| 106 | + <executeJS function="return document.evaluate("{{TextOnStage.textArea('1')}}", document.body).iterateNext().value" stepKey="actualData"/> |
105 | 107 | <assertEquals stepKey="assertTextValue">
|
106 |
| - <expectedResult type="string">{{PageBuilderTextProperty.value}}{{CmsWYSIWYGSection.imageSource(ImageUpload3.fileName)}}{{TinyMCEVariableBaseURL.editPanelValue}}{{TinyMCEWidgetCMSPageLink.editPanelValue}}</expectedResult> |
107 |
| - <actualResult type="variable">textareaValue</actualResult> |
| 108 | + <expectedResult type="variable">expectedData</expectedResult> |
| 109 | + <actualResult type="variable">actualData</actualResult> |
108 | 110 | </assertEquals>
|
109 |
| - |
110 | 111 | </test>
|
111 | 112 | <test name="TextAreaInitalStatus">
|
112 | 113 | <annotations>
|
|
0 commit comments