|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + /** |
| 4 | + * Copyright © Magento, Inc. All rights reserved. |
| 5 | + * See COPYING.txt for license details. |
| 6 | + */ |
| 7 | +--> |
| 8 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 9 | + <test name="PageBuilderVerifyContainerAffordanceTest"> |
| 10 | + <annotations> |
| 11 | + <features value="PageBuilder"/> |
| 12 | + <stories value="Affordance"/> |
| 13 | + <title value="Verify Container Content Types' Affordance"/> |
| 14 | + <description value="Verify that the Container content types have the correct size affordance in admin. Verify that the affordance is not present in admin when rendering Container content types through a Block, or when rendering the Container content types on the storefront."/> |
| 15 | + <severity value="MAJOR"/> |
| 16 | + <group value="pagebuilder"/> |
| 17 | + <group value="pagebuilder-affordance"/> |
| 18 | + <group value="pagebuilder-block"/> |
| 19 | + </annotations> |
| 20 | + <before> |
| 21 | + <createData entity="_emptyCmsBlock" stepKey="createCMSBlock"/> |
| 22 | + <createData entity="_emptyCmsPage" stepKey="createCMSPage"/> |
| 23 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 24 | + <actionGroup ref="NavigateToCreatedCMSBlockPageActionGroup" stepKey="navigateToCreatedCMSBlockPage"> |
| 25 | + <argument name="CMSBlockPage" value="$$createCMSBlock$$"/> |
| 26 | + </actionGroup> |
| 27 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 28 | + </before> |
| 29 | + <after> |
| 30 | + <deleteData createDataKey="createCMSBlock" stepKey="deleteCMSBlock"/> |
| 31 | + <deleteData createDataKey="createCMSPage" stepKey="deleteCMSPage"/> |
| 32 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> |
| 33 | + </after> |
| 34 | + <actionGroup ref="expandPageBuilderPanelMenuSection" stepKey="expandPageBuilderPanelMenuSection"> |
| 35 | + <argument name="contentType" value="PageBuilderColumnContentType"/> |
| 36 | + </actionGroup> |
| 37 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragColumnToStage"> |
| 38 | + <argument name="contentType" value="PageBuilderColumnContentType"/> |
| 39 | + </actionGroup> |
| 40 | + <actionGroup ref="duplicateContentType" stepKey="duplicateContentType"> |
| 41 | + <argument name="contentType" value="PageBuilderRowContentType"/> |
| 42 | + </actionGroup> |
| 43 | + <actionGroup ref="duplicateContentType" stepKey="duplicateContentType2"> |
| 44 | + <argument name="contentType" value="PageBuilderRowContentType"/> |
| 45 | + </actionGroup> |
| 46 | + <actionGroup ref="openPageBuilderEditPanelByIndex" stepKey="openEditMenuOnStage"> |
| 47 | + <argument name="contentType" value="PageBuilderRowContentType"/> |
| 48 | + <argument name="contentTypeIndex" value="2"/> |
| 49 | + </actionGroup> |
| 50 | + <actionGroup ref="chooseVisualSelectOption" stepKey="enterAppearance"> |
| 51 | + <argument name="property" value="PageBuilderRowAppearance_FullWidth"/> |
| 52 | + </actionGroup> |
| 53 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/> |
| 54 | + <actionGroup ref="openPageBuilderEditPanelByIndex" stepKey="openEditMenuOnStage2"> |
| 55 | + <argument name="contentType" value="PageBuilderRowContentType"/> |
| 56 | + <argument name="contentTypeIndex" value="3"/> |
| 57 | + </actionGroup> |
| 58 | + <actionGroup ref="chooseVisualSelectOption" stepKey="enterAppearance2"> |
| 59 | + <argument name="property" value="PageBuilderRowAppearance_FullBleed"/> |
| 60 | + </actionGroup> |
| 61 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings2"/> |
| 62 | + <!-- Validate Stage for CMS Block --> |
| 63 | + <actionGroup ref="VerifyAffordanceSizeActionGroup" stepKey="verifyAffordanceSizeActionGroup"/> |
| 64 | + <actionGroup ref="VerifyAffordanceSizeActionGroup" stepKey="verifyAffordanceSizeActionGroup2"> |
| 65 | + <argument name="index" value="2"/> |
| 66 | + </actionGroup> |
| 67 | + <actionGroup ref="VerifyAffordanceSizeActionGroup" stepKey="verifyAffordanceSizeActionGroup3"> |
| 68 | + <argument name="index" value="3"/> |
| 69 | + </actionGroup> |
| 70 | + <seeNumberOfElements selector="{{RowOnStage.affordanceCSS}}" userInput="3" stepKey="seeNumberOfAffordance"/> |
| 71 | + <actionGroup ref="exitPageBuilderFullScreen" stepKey="exitPageBuilderFullScreen"/> |
| 72 | + <actionGroup ref="SaveCMSBlockActionGroup" stepKey="saveCMSBlock"/> |
| 73 | + <actionGroup ref="NavigateToCreatedCMSPageActionGroup" stepKey="navigateToCreatedCMSPage"> |
| 74 | + <argument name="CMSPage" value="$$createCMSPage$$"/> |
| 75 | + </actionGroup> |
| 76 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 77 | + <actionGroup ref="expandPageBuilderPanelMenuSection" stepKey="expandPageBuilderPanelMenuSection2"> |
| 78 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 79 | + </actionGroup> |
| 80 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragBlockToStage"> |
| 81 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 82 | + </actionGroup> |
| 83 | + <actionGroup ref="openPageBuilderEditPanel" stepKey="openPageBuilderEditPanel"> |
| 84 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 85 | + </actionGroup> |
| 86 | + <actionGroup ref="searchBlockInGrid" stepKey="searchBlockInGrid"> |
| 87 | + <argument name="block" value="$$createCMSBlock$$"/> |
| 88 | + </actionGroup> |
| 89 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings3"/> |
| 90 | + <!-- Validate Stage for CMS Page --> |
| 91 | + <actionGroup ref="VerifyAffordanceSizeActionGroup" stepKey="verifyAffordanceSizeActionGroup4"/> |
| 92 | + <seeNumberOfElements selector="{{RowOnStage.affordanceCSS}}" userInput="1" stepKey="seeNumberOfAffordance2"/> |
| 93 | + <actionGroup ref="exitPageBuilderFullScreen" stepKey="exitPageBuilderFullScreen2"/> |
| 94 | + <actionGroup ref="SaveAndContinueEditCmsPageActionGroup" stepKey="saveAndContinueEditCmsPage"/> |
| 95 | + <!-- Validate Storefront --> |
| 96 | + <actionGroup ref="NavigateToStorefrontForCreatedPageActionGroup" stepKey="navigateToStorefrontForCreatedPage"> |
| 97 | + <argument name="page" value="$$createCMSPage.identifier$$"/> |
| 98 | + </actionGroup> |
| 99 | + <dontSeeElementInDOM selector="{{RowOnStorefront.affordanceCSS}}" stepKey="dontSeeAffordanceInDOM"/> |
| 100 | + </test> |
| 101 | +</tests> |
0 commit comments