File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed
app/code/Magento/PageBuilder/Test/Mftf Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 140
140
<argument name =" url" type =" string" />
141
141
<argument name =" textToDisplay" type =" string" />
142
142
<argument name =" title" type =" string" defaultValue =" " />
143
+ <argument name =" wysiwygArea" defaultValue =" {{WYSIWYGOnPageBuilderInline.notCss}}" type =" string" />
143
144
</arguments >
144
145
<comment userInput =" insertLinkInWYSIWYG" stepKey =" comment" />
145
- <waitForElementVisible selector =" {{WYSIWYGOnPageBuilderInline.notCss }} {{section.InsertLink}}" stepKey =" waitForInsertLinkButton" />
146
- <click selector =" {{WYSIWYGOnPageBuilderInline.notCss }} {{section.InsertLink}}" stepKey =" clickInsertLinkButton" />
146
+ <waitForElementVisible selector =" {{wysiwygArea }} {{section.InsertLink}}" stepKey =" waitForInsertLinkButton" />
147
+ <click selector =" {{wysiwygArea }} {{section.InsertLink}}" stepKey =" clickInsertLinkButton" />
147
148
<waitForPageLoad stepKey =" waitForPageLoad" />
148
149
<waitForElementVisible selector =" {{WYSIWYGInsertLinkModal.modal}}" stepKey =" waitForInsertLinkModal" />
149
150
<fillField selector =" {{WYSIWYGInsertLinkModal.urlInput}}" userInput =" {{url}}" stepKey =" insertUrl" />
153
154
<waitForPageLoad stepKey =" waitForPageLoad2" />
154
155
<waitForElementNotVisible selector =" {{WYSIWYGInsertLinkModal.modal}}" stepKey =" waitForInsertLinkModalGone" />
155
156
</actionGroup >
156
- <actionGroup name =" addPageLinkToTinyMCEInline" extends =" insertLinkInWYSIWYG" >
157
- <waitForElementVisible selector =" {{TinyMCESection.InsertLink}}" stepKey =" waitForInsertLinkButton" />
158
- <click selector =" {{TinyMCESection.InsertLink}}" stepKey =" clickInsertLinkButton" />
159
- </actionGroup >
160
157
<actionGroup name =" assertTextareaContainsValue" >
161
158
<arguments >
162
159
<argument name =" selector" type =" string" />
Original file line number Diff line number Diff line change 2289
2289
<comment userInput =" Check inline editor will validate for not allowing TinyMCE Link and Link URL at the same time" stepKey =" commentCheckInlineEditorPreventAddingBothUrls" />
2290
2290
<click selector =" {{PageBuilderStage.inlineWYSIWYGEditor(PageBuilderBannerContentType.role, '1')}}" stepKey =" focusOnEditorArea" />
2291
2291
<waitForElementVisible selector =" {{PageBuilderStage.inlineWYSIWYGEditorPanel(PageBuilderBannerContentType.role, '1')}}" stepKey =" waitForEditorPanel" />
2292
- <actionGroup ref =" addPageLinkToTinyMCEInline " stepKey =" insertLinkInStageInlineEditor" >
2292
+ <actionGroup ref =" insertLinkInWYSIWYG " stepKey =" insertLinkInStageInlineEditor" >
2293
2293
<argument name =" url" value =" {{ExternalLink.googleUrl}}" />
2294
2294
<argument name =" textToDisplay" value =" {{ExternalLink.googleUrl}}" />
2295
+ <argument name =" wysiwygArea" value =" " />
2295
2296
</actionGroup >
2296
2297
<seeElement selector =" {{PageBuilderStage.modal(PageBuilderBannerMessageInvalidProperty.stageErrorMessage)}}" stepKey =" seeCorrectErrorModal" />
2297
2298
<actionGroup ref =" confirmRemovalModal" stepKey =" confirmNestingLinkModal" />
Original file line number Diff line number Diff line change 1924
1924
<comment userInput =" Validate Inline Editor" stepKey =" commentValidateInlineEditor" />
1925
1925
<click selector =" {{PageBuilderStage.inlineWYSIWYGEditor(PageBuilderSlideContentType.role, '1')}}" stepKey =" focusOnEditorArea" />
1926
1926
<waitForElementVisible selector =" {{PageBuilderStage.inlineWYSIWYGEditorPanel(PageBuilderSlideContentType.role, '1')}}" stepKey =" waitForEditorPanel" />
1927
- <actionGroup ref =" addPageLinkToTinyMCEInline " stepKey =" insertLinkInStageInlineEditor" >
1927
+ <actionGroup ref =" insertLinkInWYSIWYG " stepKey =" insertLinkInStageInlineEditor" >
1928
1928
<argument name =" url" value =" {{ExternalLink.googleUrl}}" />
1929
1929
<argument name =" textToDisplay" value =" {{ExternalLink.googleUrl}}" />
1930
+ <argument name =" wysiwygArea" value =" " />
1930
1931
</actionGroup >
1931
1932
<seeElement selector =" {{PageBuilderStage.modal(PageBuilderSlideItemMessageInvalidProperty.stageErrorMessage)}}" stepKey =" seeCorrectErrorModal" />
1932
1933
<actionGroup ref =" confirmRemovalModal" stepKey =" confirmNestingLinkModal" />
You can’t perform that action at this time.
0 commit comments