|
8 | 8 |
|
9 | 9 | <tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
10 | 10 | xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
|
| 11 | + <test name="TextHeightConsistencyBetweenContentTypeAndBlockOnStorefront"> |
| 12 | + <annotations> |
| 13 | + <features value="PageBuilder"/> |
| 14 | + <stories value="Text"/> |
| 15 | + <title value="Height consistency of text in PageBuilder storefront"/> |
| 16 | + <description value="Verify text height consistent whether in text content type or text content type inside block"/> |
| 17 | + <severity value="AVERAGE"/> |
| 18 | + <useCaseId value="MC-4254"/> |
| 19 | + <testCaseId value="MC-13792"/> |
| 20 | + <group value="pagebuilder"/> |
| 21 | + <group value="pagebuilder-text"/> |
| 22 | + <group value="pagebuilder-block"/> |
| 23 | + <group value="pagebuilder-block-content"/> |
| 24 | + </annotations> |
| 25 | + <before> |
| 26 | + <createData entity="_defaultBlock" stepKey="createPreReqBlock" /> |
| 27 | + <createData entity="_defaultCmsPage" stepKey="createCMSPage" /> |
| 28 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 29 | + </before> |
| 30 | + <after> |
| 31 | + <deleteData createDataKey="createPreReqBlock" stepKey="deletePreReqBlock" /> |
| 32 | + <deleteData createDataKey="createCMSPage" stepKey="deletePreReqCMSPage" /> |
| 33 | + <actionGroup ref="logout" stepKey="logout"/> |
| 34 | + </after> |
| 35 | + <actionGroup ref="navigateToCreatedCMSBlockPage" stepKey="navigateToCreatedCmsBlock"> |
| 36 | + <argument name="CMSBlockPage" value="$$createPreReqBlock$$"/> |
| 37 | + </actionGroup> |
| 38 | + <!-- Update block with text --> |
| 39 | + <comment userInput="Update block with text" stepKey="commentUpdateBlockWithText"/> |
| 40 | + <actionGroup ref="expandPageBuilderPanelMenuSection" stepKey="expandMenuSectionForText1"> |
| 41 | + <argument name="contentType" value="PageBuilderTextContentType"/> |
| 42 | + </actionGroup> |
| 43 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragTextOntoBlockStage"> |
| 44 | + <argument name="contentType" value="PageBuilderTextContentType"/> |
| 45 | + </actionGroup> |
| 46 | + <actionGroup ref="inlineEditWYSIWYGFromStage" stepKey="inlineEditBlockText"> |
| 47 | + <argument name="contentType" value="PageBuilderTextContentType"/> |
| 48 | + <argument name="content" value="{{PageBuilderTextProperty.value}}"/> |
| 49 | + </actionGroup> |
| 50 | + <click selector="{{CmsNewBlockBlockActionsSection.savePage}}" stepKey="saveBlock"/> |
| 51 | + <actionGroup ref="navigateToCreatedCMSPage" stepKey="navigateToCreatedCmsPage"> |
| 52 | + <argument name="CMSPage" value="$$createCMSPage$$"/> |
| 53 | + </actionGroup> |
| 54 | + <!-- Add text to page --> |
| 55 | + <comment userInput="Add text to page" stepKey="addTextToPage"/> |
| 56 | + <actionGroup ref="expandPageBuilderPanelMenuSection" stepKey="expandMenuSectionForText2"> |
| 57 | + <argument name="contentType" value="PageBuilderTextContentType"/> |
| 58 | + </actionGroup> |
| 59 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragTextOntoPageStage"> |
| 60 | + <argument name="contentType" value="PageBuilderTextContentType"/> |
| 61 | + </actionGroup> |
| 62 | + <actionGroup ref="inlineEditWYSIWYGFromStage" stepKey="inlineEdit"> |
| 63 | + <argument name="contentType" value="PageBuilderTextContentType"/> |
| 64 | + <argument name="content" value="{{PageBuilderTextProperty.value}}"/> |
| 65 | + </actionGroup> |
| 66 | + <!-- Add block to page --> |
| 67 | + <comment userInput="Add block to page" stepKey="addBlockToPage"/> |
| 68 | + <actionGroup ref="expandPageBuilderPanelMenuSection" stepKey="expandMenuSectionForBlock"> |
| 69 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 70 | + </actionGroup> |
| 71 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragBlockOntoStage"> |
| 72 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 73 | + </actionGroup> |
| 74 | + <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditAfterDrop"> |
| 75 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 76 | + </actionGroup> |
| 77 | + <actionGroup ref="searchBlockInGrid" stepKey="searchBlockInGrid"> |
| 78 | + <argument name="block" value="$$createPreReqBlock$$"/> |
| 79 | + </actionGroup> |
| 80 | + <waitForElementVisible selector="{{BlockOnForm.title('$$createPreReqBlock.title$$')}}" stepKey="waitToSeeBlockTitle"/> |
| 81 | + <seeElement selector="{{BlockOnForm.title('$$createPreReqBlock.title$$')}}" stepKey="seeBlockTitleOnForm"/> |
| 82 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings2"/> |
| 83 | + <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/> |
| 84 | + <!--Get storefront information--> |
| 85 | + <comment userInput="Get storefront information" stepKey="commentGetStorefrontInformation"/> |
| 86 | + <actionGroup ref="navigateToStorefrontForCreatedPage" stepKey="navigateToStoreFront"> |
| 87 | + <argument name="page" value="$$createCMSPage.identifier$$"/> |
| 88 | + </actionGroup> |
| 89 | + <waitForPageLoad stepKey="waitForStorefront"/> |
| 90 | + <waitForElement selector="{{TextOnStorefront.base('1')}}" stepKey="waitForTextOnStorefront"/> |
| 91 | + <executeJS function="return document.evaluate("{{TextOnStorefront.base('1'))}}", document.body).iterateNext().offsetHeight;" stepKey="getTextOnStorefrontHeight"/> |
| 92 | + <executeJS function="return document.evaluate("{{BlockOnStorefront.text('1', '1'))}}", document.body).iterateNext().offsetHeight;" stepKey="getBlockTextOnStorefrontHeight"/> |
| 93 | + <assertEquals stepKey="assertStageAndStorefrontHeightAreClose"> |
| 94 | + <expectedResult type="variable">getTextOnStorefrontHeight</expectedResult> |
| 95 | + <actualResult type="variable">getBlockTextOnStorefrontHeight</actualResult> |
| 96 | + </assertEquals> |
| 97 | + </test> |
11 | 98 | <test name="BlockRenderTextThroughBlockContentTypeTinyMCE4WysiwygEnabledByDefault">
|
12 | 99 | <annotations>
|
13 | 100 | <features value="PageBuilder"/>
|
|
0 commit comments