|
43 | 43 | <seeElement selector="{{TextOnStage.textareaPlaceholder('1')}}" stepKey="seeTextareaPlaceholder"/>
|
44 | 44 | <!--Check min height of textarea-->
|
45 | 45 | <comment userInput="Check min height of textarea" stepKey="comment2"/>
|
46 |
| - |
47 |
| - |
48 |
| - |
49 |
| - |
| 46 | + <executeJS function="return jQuery('.inline-wysiwyg-textarea').css('min-height');" stepKey="height"/> |
| 47 | + <assertEquals stepKey="assertMinHeight"> |
| 48 | + <actualResult type="variable">height</actualResult> |
| 49 | + <expectedResult type="string">50px</expectedResult> |
| 50 | + </assertEquals> |
50 | 51 | <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage2"/>
|
51 | 52 | <!--Verify empty content type on storefront-->
|
52 | 53 | <comment userInput="Verify empty content type on storefront" stepKey="commentVerifyEmptyBlock"/>
|
53 | 54 | <amOnPage url="$$createCMSPage.identifier$$" stepKey="amOnPageTestPage"/>
|
| 55 | + <waitForPageLoad stepKey="waitForPageLoad" /> |
54 | 56 | <seeElementInDOM selector="{{TextOnStorefront.empty('1')}}" stepKey="seeEmptyTextContentType"/>
|
55 | 57 | <dontSeeElement selector="{{TextOnStorefront.empty('1')}}" stepKey="dontSeeEmptyTextContentTypeOnStorefront"/>
|
56 | 58 | <!--Check min height of textarea on Storefront-->
|
57 | 59 | <comment userInput="Check min height of textarea on Storefront" stepKey="comment3"/>
|
58 |
| - |
59 |
| - |
60 |
| - |
| 60 | + <seeElementInDOM selector="{{TextOnStorefront.noCssClasses('1')}}" stepKey="dontSeeCSSClassOnEmptyTextarea"/> |
61 | 61 | </test>
|
62 | 62 | <test name="TextVerifyTextAreaOnTextContentType">
|
63 | 63 | <annotations>
|
|
167 | 167 | <!-- Verify inputed text is carried out to slideout -->
|
168 | 168 | <comment userInput="Verify inputed text is carried out to slideout" stepKey="comment1"/>
|
169 | 169 | <waitForElementVisible selector="{{TextOnConfiguration.textInIFrame(PageBuilderTextProperty.value)}}" stepKey="waitForText"/>
|
| 170 | + <switchToIFrame stepKey="exitIFrame1"/> |
170 | 171 | <!-- Add variable to tinymce3 -->
|
171 | 172 | <comment userInput="Add variable to tinymce3" stepKey="comment2"/>
|
172 |
| - <executeJS function="tinymce.get('pagebuilder_text_form_content').setContent({{PageBuilderTextArea_VariableBaseURL.editPanelValue}});" stepKey="addVariable"/> |
| 173 | + <executeJS function="tinymce.get('pagebuilder_text_form_content').setContent('{{PageBuilderTextArea_VariableBaseURL.editPanelValue}}');" stepKey="addVariable"/> |
173 | 174 | <!-- Add widget to tinymce3 -->
|
174 | 175 | <comment userInput="Add widget to tinymce3" stepKey="comment3"/>
|
175 |
| - <executeJS function="tinymce.get('pagebuilder_text_form_content').setContent({{PageBuilderTextArea_WidgetCMSPageLink.editPanelValue}});" stepKey="addWidget"/> |
176 |
| - <switchToIFrame stepKey="exitIFrame1"/> |
| 176 | + <executeJS function="tinymce.get('pagebuilder_text_form_content').setContent('{{PageBuilderTextArea_WidgetCMSHomepageLink.editPanelValue}}');" stepKey="addWidget"/> |
177 | 177 | <actionGroup ref="closeEditPanelSettings" stepKey="closeEditPanelSettings"/>
|
178 | 178 | <!-- Validate Stage After Save -->
|
179 | 179 | <comment userInput="Validate Stage After Save" stepKey="commentValidateStage2"/>
|
180 |
| - <waitForElementVisible selector="{{TextOnStage.textAreaTextContains('1', PageBuilderTextArea_WidgetCMSPageLink.editPanelValue)}}" stepKey="waitForWidgetOnStage"/> |
| 180 | + <waitForElementVisible selector="{{TextOnStage.textAreaTextContains('1', PageBuilderTextArea_WidgetCMSHomepageLink.editPanelValue)}}" stepKey="waitForWidgetOnStage"/> |
181 | 181 | <waitForElementVisible selector="{{TextOnStage.textAreaTextContains('1', PageBuilderTextArea_VariableBaseURL.editPanelValue)}}" stepKey="waitForVariableOnStage"/>
|
182 | 182 | <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage2"/>
|
183 | 183 | <amOnPage url="" stepKey="goToBaseURL"/>
|
|
0 commit comments