Skip to content

Commit 28a514e

Browse files
committed
MC-1438: Editing Text Content Block from the Stage with WYSIWYG turned off completely or by default
1 parent e5a65fb commit 28a514e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

app/code/Magento/PageBuilder/Test/Mftf/Test/AdminPageBuilderTextTest.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@
500500
</actionGroup>
501501
<!--Assert Text placeholder-->
502502
<comment userInput="Assert Text placeholder" stepKey="assertTextPlaceholder"/>
503-
<seeElement selector="{{TextOnStage.placeholder('1')}}" stepKey="seeTextPlaceholder"/>
503+
<seeElement selector="{{TextOnStage.textareaPlaceholder('1')}}" stepKey="seeTextPlaceholder"/>
504504
<actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage2"/>
505505
<!--Verify empty content type on storefront-->
506506
<comment userInput="Verify empty content type on storefront" stepKey="commentVerifyEmptyBlock"/>
@@ -1711,7 +1711,11 @@
17111711
<actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/>
17121712
<!-- Validate Stage -->
17131713
<comment userInput="Validate Stage" stepKey="commentValidateStage"/>
1714-
<waitForElementVisible selector="{{TextOnStage.textAreaText('1', PageBuilderTextProperty.value)}}" stepKey="waitForTextStage"/>
1714+
<executeJS function="return document.evaluate(&quot;{{TextOnStage.textArea('1')}}&quot;, document.body).iterateNext().value" stepKey="textareaValueAfterSaving"/>
1715+
<assertEquals stepKey="assertTextValueAfterSaving">
1716+
<expectedResult type="string">{{PageBuilderTextProperty.value}}</expectedResult>
1717+
<actualResult type="variable">textareaValueAfterSaving</actualResult>
1718+
</assertEquals>
17151719
<!-- Validate Edit Panel -->
17161720
<comment userInput="Validate Edit Panel" stepKey="commentValidateEditPanel"/>
17171721
<actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage2">

0 commit comments

Comments
 (0)