|
94 | 94 | <click selector="{{TextOnStage.textareaPlaceholder('1')}}" stepKey="focusOnEditorArea"/>
|
95 | 95 | <fillField selector="{{TextOnStage.textareaPlaceholder('1')}}" userInput="{{PageBuilderTextProperty.value}}" stepKey="fillTextToTextarea"/>
|
96 | 96 | <click selector="{{PageBuilderPanel.searchPanel}}" stepKey="lostFocusFromTextarea"/>
|
97 |
| - <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/> |
98 | 97 | <!-- Validate Stage -->
|
99 | 98 | <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("{{TextOnStage.textArea('1')}}", 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> |
102 | 105 | <!--Verify inputed text on slideout-->
|
103 | 106 | <comment userInput="Verify inputed text on slideout" stepKey="commentVerifyTextOnSlideout"/>
|
104 | 107 | <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage">
|
|
107 | 110 | <executeJS function="return document.getElementById('{{TextOnConfiguration.textAreaId}}').value;" stepKey="getText"/>
|
108 | 111 | <assertContains stepKey="assertEquals1" message="pass">
|
109 | 112 | <expectedResult type="string">{{PageBuilderTextProperty.value}}</expectedResult>
|
110 |
| - <actualResult type="variable">$getText</actualResult> |
| 113 | + <actualResult type="variable">getText</actualResult> |
111 | 114 | </assertContains>
|
112 | 115 | <actionGroup ref="closeEditPanelSettings" stepKey="closeEditPanelSettings"/>
|
113 | 116 | <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage2"/>
|
114 | 117 | <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage2"/>
|
115 | 118 | <!--Verify Text Content Type on stage after saving cms page-->
|
116 | 119 | <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("{{TextOnStage.textArea('1')}}", 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> |
118 | 126 | <!--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"/> |
120 | 128 | <amOnPage url="$$createCMSPage.identifier$$" stepKey="amOnPageTestPage"/>
|
121 | 129 | <waitForElementVisible selector="{{TextOnStorefront.textAreaText('1', PageBuilderTextProperty.value)}}" stepKey="waitForTextStorefront"/>
|
122 | 130 | </test>
|
|
412 | 420 | <comment userInput="Verify text content type on storefront" stepKey="commentVerifyTextOnStage"/>
|
413 | 421 | <see userInput="{{PageBuilderTextContentTypeDefault.value}}" stepKey="seeTextOnStage"/>
|
414 | 422 | <!--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"/> |
416 | 424 | <amOnPage url="$$createCMSPage.identifier$$" stepKey="amOnPageTestPage"/>
|
417 | 425 | <see userInput="{{PageBuilderTextContentTypeDefault.value}}" stepKey="seeTextOnStorefront"/>
|
418 | 426 | </test>
|
|
0 commit comments