Skip to content

Commit 4f6fe40

Browse files
committed
Merge branch 'MC-1438' of github.com:magento-trigger/magento2-page-builder into MC-1438
2 parents e6fa263 + 6cee3ed commit 4f6fe40

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

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

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,14 @@
9494
<click selector="{{TextOnStage.textareaPlaceholder('1')}}" stepKey="focusOnEditorArea"/>
9595
<fillField selector="{{TextOnStage.textareaPlaceholder('1')}}" userInput="{{PageBuilderTextProperty.value}}" stepKey="fillTextToTextarea"/>
9696
<click selector="{{PageBuilderPanel.searchPanel}}" stepKey="lostFocusFromTextarea"/>
97-
<actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/>
9897
<!-- Validate Stage -->
9998
<comment userInput="Validate Stage" stepKey="commentValidateStage"/>
100-
<actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
101-
<waitForElementVisible selector="{{TextOnStage.textAreaText('1', PageBuilderTextProperty.value)}}" stepKey="waitForTextStage1"/>
99+
<waitForElementVisible selector="{{TextOnStage.textArea('1')}}" stepKey="waitForTextStage1"/>
100+
<executeJS function="return document.evaluate(&quot;{{TextOnStage.textArea('1')}}&quot;, document.body).iterateNext().value" stepKey="textareaValue"/>
101+
<assertEquals stepKey="assertTextValue">
102+
<expectedResult type="string">{{PageBuilderTextProperty.value}}</expectedResult>
103+
<actualResult type="variable">textareaValue</actualResult>
104+
</assertEquals>
102105
<!--Verify inputed text on slideout-->
103106
<comment userInput="Verify inputed text on slideout" stepKey="commentVerifyTextOnSlideout"/>
104107
<actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage">
@@ -107,16 +110,21 @@
107110
<executeJS function="return document.getElementById('{{TextOnConfiguration.textAreaId}}').value;" stepKey="getText"/>
108111
<assertContains stepKey="assertEquals1" message="pass">
109112
<expectedResult type="string">{{PageBuilderTextProperty.value}}</expectedResult>
110-
<actualResult type="variable">$getText</actualResult>
113+
<actualResult type="variable">getText</actualResult>
111114
</assertContains>
112115
<actionGroup ref="closeEditPanelSettings" stepKey="closeEditPanelSettings"/>
113116
<actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage2"/>
114117
<actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage2"/>
115118
<!--Verify Text Content Type on stage after saving cms page-->
116119
<comment userInput="Verify text content type on stage" stepKey="commentVerifyTextOnStage"/>
117-
<waitForElementVisible selector="{{TextOnStage.textAreaText('1', PageBuilderTextProperty.value)}}" stepKey="waitForTextStage2"/>
120+
<waitForElementVisible selector="{{TextOnStage.textArea('1')}}" stepKey="waitForTextStage2"/>
121+
<executeJS function="return document.evaluate(&quot;{{TextOnStage.textArea('1')}}&quot;, document.body).iterateNext().value" stepKey="textareaValueAfterSaving"/>
122+
<assertEquals stepKey="assertTextValueAfterSaving">
123+
<expectedResult type="string">{{PageBuilderTextProperty.value}}</expectedResult>
124+
<actualResult type="variable">textareaValueAfterSaving</actualResult>
125+
</assertEquals>
118126
<!--Verify Text Content Type on storefront-->
119-
<comment userInput="Verify Text Content Type on storefront" stepKey="commentVerifyTextContenTypeOnStorefront"/>
127+
<comment userInput="Verify Text Content Type on storefront" stepKey="commentVerifyTextContentTypeOnStorefront"/>
120128
<amOnPage url="$$createCMSPage.identifier$$" stepKey="amOnPageTestPage"/>
121129
<waitForElementVisible selector="{{TextOnStorefront.textAreaText('1', PageBuilderTextProperty.value)}}" stepKey="waitForTextStorefront"/>
122130
</test>
@@ -412,7 +420,7 @@
412420
<comment userInput="Verify text content type on storefront" stepKey="commentVerifyTextOnStage"/>
413421
<see userInput="{{PageBuilderTextContentTypeDefault.value}}" stepKey="seeTextOnStage"/>
414422
<!--Verify Text Content Type on storefront-->
415-
<comment userInput="Verify Text Content Type on storefront" stepKey="commentVerifyTextContenTypeOnStorefront"/>
423+
<comment userInput="Verify Text Content Type on storefront" stepKey="commentVerifyTextContentTypeOnStorefront"/>
416424
<amOnPage url="$$createCMSPage.identifier$$" stepKey="amOnPageTestPage"/>
417425
<see userInput="{{PageBuilderTextContentTypeDefault.value}}" stepKey="seeTextOnStorefront"/>
418426
</test>

0 commit comments

Comments
 (0)