|
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="saveEditPanelSettings" stepKey="saveEditPanelSettings"/> |
98 | 97 | <!-- Validate Stage -->
|
99 | 98 | <comment userInput="Validate Stage" stepKey="commentValidateStage"/>
|
100 |
| - <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> |
101 | 105 | <!--Verify inputed text on slideout-->
|
102 | 106 | <comment userInput="Verify inputed text on slideout" stepKey="commentVerifyTextOnSlideout"/>
|
103 | 107 | <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage">
|
|
112 | 116 | <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage2"/>
|
113 | 117 | <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage2"/>
|
114 | 118 | <!--Verify Text Content Type on stage after saving cms page-->
|
115 |
| - <comment userInput="Verify text content type on storefront" stepKey="commentVerifyTextOnStage"/> |
116 |
| - <waitForElementVisible selector="{{TextOnStage.textAreaText('1', PageBuilderTextProperty.value)}}" stepKey="waitForTextStage2"/> |
| 119 | + <comment userInput="Verify text content type on stage" stepKey="commentVerifyTextOnStage"/> |
| 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> |
117 | 126 | <!--Verify Text Content Type on storefront-->
|
118 |
| - <comment userInput="Verify Text Content Type on storefront" stepKey="commentVerifyTextContenTypeOnStorefront"/> |
| 127 | + <comment userInput="Verify Text Content Type on storefront" stepKey="commentVerifyTextContentTypeOnStorefront"/> |
119 | 128 | <amOnPage url="$$createCMSPage.identifier$$" stepKey="amOnPageTestPage"/>
|
120 | 129 | <waitForElementVisible selector="{{TextOnStorefront.textAreaText('1', PageBuilderTextProperty.value)}}" stepKey="waitForTextStorefront"/>
|
121 | 130 | </test>
|
|
414 | 423 | <comment userInput="Verify text content type on storefront" stepKey="commentVerifyTextOnStage"/>
|
415 | 424 | <see userInput="{{PageBuilderTextContentTypeDefault.value}}" stepKey="seeTextOnStage"/>
|
416 | 425 | <!--Verify Text Content Type on storefront-->
|
417 |
| - <comment userInput="Verify Text Content Type on storefront" stepKey="commentVerifyTextContenTypeOnStorefront"/> |
| 426 | + <comment userInput="Verify Text Content Type on storefront" stepKey="commentVerifyTextContentTypeOnStorefront"/> |
418 | 427 | <amOnPage url="$$createCMSPage.identifier$$" stepKey="amOnPageTestPage"/>
|
419 | 428 | <see userInput="{{PageBuilderTextContentTypeDefault.value}}" stepKey="seeTextOnStorefront"/>
|
420 | 429 | </test>
|
|
0 commit comments