|
| 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 | + |
| 9 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 10 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 11 | + <test name="StorefrontVerifyPageFullWidthLayoutWithAllPageContentTest"> |
| 12 | + <annotations> |
| 13 | + <features value="PageBuilder"/> |
| 14 | + <stories value="Catalog Products"/> |
| 15 | + <title value="Verify the Page – Full Width layout on the storefront with all page content"/> |
| 16 | + <description value="Verify the Page – Full Width layout on the storefront with all page content"/> |
| 17 | + <severity value="CRITICAL"/> |
| 18 | + <useCaseId value=""/> |
| 19 | + <testCaseId value="MC-15482"/> |
| 20 | + <group value="pagebuilder"/> |
| 21 | + <group value="pagebuilder-layout"/> |
| 22 | + <group value="pagebuilder-fullwidth"/> |
| 23 | + <group value="pagebuilder-cms-page"/> |
| 24 | + </annotations> |
| 25 | + <before> |
| 26 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 27 | + </before> |
| 28 | + <after> |
| 29 | + <resizeWindow width="1280" height="1024" stepKey="resizeWindowToDesktop"/> |
| 30 | + <actionGroup ref="AdminDeleteCMSPageByUrlKeyActionGroup" stepKey="deleteCmsPage"> |
| 31 | + <argument name="pageUrlKey" value="{{_cmsPageTestPageBuilderPageLayout.identifier}}"/> |
| 32 | + </actionGroup> |
| 33 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> |
| 34 | + </after> |
| 35 | + <!--Go to New CMS Page page--> |
| 36 | + <actionGroup ref="AdminOpenCreateNewCMSPageActionGroup" stepKey="navigateToCreateNewPage"/> |
| 37 | + <!-- Fill basic page information --> |
| 38 | + <fillField selector="{{CmsNewPagePageBasicFieldsSection.pageTitle}}" userInput="{{_cmsPageTestPageBuilderPageLayout.title}}" stepKey="fillTitle"/> |
| 39 | + <conditionalClick selector="{{CmsNewPagePageContentSection.header}}" dependentSelector="{{CmsNewPagePageContentSection.contentHeading}}" visible="false" stepKey="expandContentTabIfCollapsed"/> |
| 40 | + |
| 41 | + <!-- Add row and heading --> |
| 42 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 43 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragRowToRootContainer"> |
| 44 | + <argument name="contentType" value="PageBuilderRowContentType"/> |
| 45 | + <argument name="containerTargetType" value="PageBuilderRootContainerContentType"/> |
| 46 | + </actionGroup> |
| 47 | + <actionGroup ref="openPageBuilderEditPanelByIndex" stepKey="openEditMenuOnStage"> |
| 48 | + <argument name="contentType" value="PageBuilderRowContentType"/> |
| 49 | + </actionGroup> |
| 50 | + <actionGroup ref="chooseVisualSelectOption" stepKey="enterAppearance"> |
| 51 | + <argument name="property" value="PageBuilderRowAppearance_FullWidth"/> |
| 52 | + </actionGroup> |
| 53 | + <actionGroup ref="fillSlideOutPanelFieldGeneral" stepKey="enterBackgroundColor"> |
| 54 | + <argument name="property" value="PageBuilderBackgroundColor_Sprout"/> |
| 55 | + </actionGroup> |
| 56 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/> |
| 57 | + <actionGroup ref="expandPageBuilderPanelMenuSection" stepKey="expandPageBuilderPanelMenuSection"> |
| 58 | + <argument name="contentType" value="PageBuilderHeadingContentType"/> |
| 59 | + </actionGroup> |
| 60 | + <actionGroup ref="dragContentTypeToContainer" stepKey="dragHeadingIntoStage"> |
| 61 | + <argument name="contentType" value="PageBuilderHeadingContentType"/> |
| 62 | + </actionGroup> |
| 63 | + <actionGroup ref="enterHeadingOnStage" stepKey="enterHeadingOnStage"> |
| 64 | + <argument name="headingText" value="PageBuilderHeadingTextSample4"/> |
| 65 | + </actionGroup> |
| 66 | + <actionGroup ref="clickOutsideLiveEditHeading" stepKey="clickOutsideLiveEditHeading"> |
| 67 | + <argument name="index" value="1"/> |
| 68 | + </actionGroup> |
| 69 | + <actionGroup ref="exitPageBuilderFullScreen" stepKey="exitPageBuilderFullScreen"/> |
| 70 | + |
| 71 | + <!-- Fill URL Key --> |
| 72 | + <conditionalClick selector="{{CmsNewPagePageSeoSection.header}}" dependentSelector="{{CmsNewPagePageSeoSection.urlKey}}" visible="false" stepKey="clickExpandSearchEngineOptimisationIfCollapsed"/> |
| 73 | + <fillField selector="{{CmsNewPagePageSeoSection.urlKey}}" userInput="{{_cmsPageTestPageBuilderPageLayout.identifier}}" stepKey="fillUrlKey"/> |
| 74 | + |
| 75 | + <!-- Use Full Width layout --> |
| 76 | + <actionGroup ref="SetLayoutActionGroup" stepKey="setLayout"> |
| 77 | + <argument name="designSection" value="CmsDesignSection"/> |
| 78 | + <argument name="layoutOption" value="PageBuilderFullWidthLayout.cms"/> |
| 79 | + </actionGroup> |
| 80 | + |
| 81 | + <!-- Save CMS Page --> |
| 82 | + <actionGroup ref="SaveAndContinueEditCmsPageActionGroup" stepKey="saveAndContinueEditCmsPage"/> |
| 83 | + |
| 84 | + <!-- Validate in Storefront - full screen --> |
| 85 | + <actionGroup ref="StorefrontGoToCMSPageActionGroup" stepKey="navigateToPageOnStoreFront"> |
| 86 | + <argument name="identifier" value="{{_cmsPageTestPageBuilderPageLayout.identifier}}"/> |
| 87 | + </actionGroup> |
| 88 | + <actionGroup ref="verifyFullWidthLayout" stepKey="verifyFullWidthLayout"/> |
| 89 | + <waitForElementVisible selector="{{HeadingOnStorefront.headingText(PageBuilderHeadingTypeProperty_H2.value, PageBuilderHeadingTextSample4.value, '1')}}" stepKey="waitForStorefrontHeadingText"/> |
| 90 | + |
| 91 | + <!-- Validate in Storefront - 1600px width --> |
| 92 | + <resizeWindow width="1600" height="1024" stepKey="resizeWindowWidth"/> |
| 93 | + <actionGroup ref="verifyFullWidthLayout" stepKey="verifyFullWidthLayout2"/> |
| 94 | + <waitForElementVisible selector="{{HeadingOnStorefront.headingText(PageBuilderHeadingTypeProperty_H2.value, PageBuilderHeadingTextSample4.value, '1')}}" stepKey="waitForStorefrontHeadingText2"/> |
| 95 | + |
| 96 | + <!-- Validate in Storefront - 600px width --> |
| 97 | + <resizeWindow width="600" height="1000" stepKey="resizeWindowWidth2"/> |
| 98 | + <actionGroup ref="verifyFullWidthLayout" stepKey="verifyFullWidthLayout3"/> |
| 99 | + <waitForElementVisible selector="{{HeadingOnStorefront.headingText(PageBuilderHeadingTypeProperty_H2.value, PageBuilderHeadingTextSample4.value, '1')}}" stepKey="waitForStorefrontHeadingText3"/> |
| 100 | + </test> |
| 101 | +</tests> |
0 commit comments