File tree Expand file tree Collapse file tree 4 files changed +8
-27
lines changed
app/code/Magento/PageBuilder/Test/Mftf Expand file tree Collapse file tree 4 files changed +8
-27
lines changed Original file line number Diff line number Diff line change 161
161
<actualResult type =" variable" >textareaValue</actualResult >
162
162
</assertEquals >
163
163
</actionGroup >
164
- <actionGroup name =" openMediaGalleryFromTinyMCEInlineEditor" >
165
- <arguments >
166
- <argument name =" contentType" />
167
- <argument name =" index" type =" string" defaultValue =" 1" />
168
- </arguments >
169
- <click selector =" {{PageBuilderStage.inlineWYSIWYGEditor(contentType.role, index)}}" stepKey =" focusOnEditorArea" />
170
- <waitForPageLoad stepKey =" waitForInlineWYSIWYGEditor" />
171
- <click selector =" {{WYSIWYGOnPageBuilderInline.imageSelector}}" stepKey =" clickWYSIWYGImageSelector" />
172
- <waitForPageLoad stepKey =" waitForImageSelectorModal" />
173
- <click selector =" {{WYSIWYGOnPageBuilderInline.imageSelectorBrowse}}" stepKey =" clickWYSIWYGImageSelectorBrowseButton" />
174
- <waitForPageLoad stepKey =" waitForImageSelectorBrowseModal" />
175
- </actionGroup >
176
- <actionGroup name =" openMediaGalleryFromCustomTinyMCEInlineEditor" >
177
- <waitForPageLoad stepKey =" waitForInlineWYSIWYGEditor" />
178
- <click selector =" {{WYSIWYGOnPageBuilderInline.imageSelector}}" stepKey =" clickWYSIWYGImageSelector" />
179
- <waitForPageLoad stepKey =" waitForImageSelectorModal" />
180
- <click selector =" {{WYSIWYGOnPageBuilderInline.imageSelectorBrowse}}" stepKey =" clickWYSIWYGImageSelectorBrowseButton" />
181
- <waitForPageLoad stepKey =" waitForImageSelectorBrowseModal" />
182
- </actionGroup >
183
164
</actionGroups >
Original file line number Diff line number Diff line change 2255
2255
<comment userInput =" Removed closeEditPanelSettings" stepKey =" closeEditPanelSettings" />
2256
2256
<!-- Add Image to Banner -->
2257
2257
<comment userInput =" Add Image to Banner" stepKey =" commentAddImageToContentType" />
2258
- <actionGroup ref =" openMediaGalleryFromTinyMCEInlineEditor" stepKey =" openMediaGalleryFromTinyMCEInlineEditor" >
2259
- <argument name =" contentType" value =" PageBuilderBannerContentType" />
2260
- </actionGroup >
2258
+ <click selector =" {{PageBuilderStage.inlineWYSIWYGEditor(PageBuilderBannerContentType.role, '1')}}" stepKey =" focusOnEditorArea" />
2261
2259
<!-- Validated Backend -->
2262
2260
<seeElement selector =" {{BannerOnBackend.inlineWYSIWYGEditorWithTag('1', 'img')}}" stepKey =" validateImageInEditor" />
2263
2261
<!-- Validated Backend After Save -->
Original file line number Diff line number Diff line change 1756
1756
<click selector =" {{PageBuilderPanel.searchPanel}}" stepKey =" unFocusEditor" />
1757
1757
<!-- Add Image to Slide -->
1758
1758
<comment userInput =" Add Image to Slide" stepKey =" commentAddImageToContentType" />
1759
- <actionGroup ref =" openMediaGalleryFromTinyMCEInlineEditor" stepKey =" openMediaGalleryFromTinyMCEInlineEditor" >
1760
- <argument name =" contentType" value =" PageBuilderSlideContentType" />
1761
- </actionGroup >
1759
+ <click selector =" {{PageBuilderStage.inlineWYSIWYGEditor(PageBuilderSlideContentType.role, '1')}}" stepKey =" focusOnEditorArea" />
1760
+ <waitForPageLoad stepKey =" waitForInlineWYSIWYGEditor" />
1761
+ <click selector =" {{WYSIWYGOnPageBuilderInline.imageSelector}}" stepKey =" clickWYSIWYGImageSelector" />
1762
+ <waitForPageLoad stepKey =" waitForImageSelectorModal" />
1763
+ <click selector =" {{WYSIWYGOnPageBuilderInline.imageSelectorBrowse}}" stepKey =" clickWYSIWYGImageSelectorBrowseButton" />
1764
+ <waitForPageLoad stepKey =" waitForImageSelectorBrowseModal" />
1762
1765
<actionGroup ref =" NavigateToMediaFolderActionGroup" stepKey =" NavigateToWYSIWYGFolderActionGroup" >
1763
1766
<argument name =" FolderName" value =" {{PageBuilderBackgroundImage_JPG.path}}" />
1764
1767
</actionGroup >
Original file line number Diff line number Diff line change 2421
2421
<comment userInput =" Removed closeEditPanelSettings" stepKey =" closeEditPanelSettings" />
2422
2422
<!-- Add Image to Text -->
2423
2423
<comment userInput =" Add Image to Text" stepKey =" commentAddImageToContentType" />
2424
- <click selector =" {{TextOnStage.tinymce('1')}}" stepKey =" focusOnEditorArea" after =" commentAddImageToContentType" />
2425
- <actionGroup ref =" openMediaGalleryFromCustomTinyMCEInlineEditor" stepKey =" openMediaGalleryFromTinyMCEInlineEditor" />
2424
+ <click selector =" {{TextOnStage.tinymce('1')}}" stepKey =" focusOnEditorArea" />
2426
2425
<!-- Validated Backend -->
2427
2426
<seeElement selector =" {{TextOnStage.inlineWYSIWYGEditorWithTag('1', 'img')}}" stepKey =" validateImageInEditor" />
2428
2427
<!-- Validated Backend After Save -->
You can’t perform that action at this time.
0 commit comments