|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + /************************************************************************ |
| 4 | + * |
| 5 | + * Copyright 2023 Adobe |
| 6 | + * All Rights Reserved. |
| 7 | + * |
| 8 | + * NOTICE: All information contained herein is, and remains |
| 9 | + * the property of Adobe and its suppliers, if any. The intellectual |
| 10 | + * and technical concepts contained herein are proprietary to Adobe |
| 11 | + * and its suppliers and are protected by all applicable intellectual |
| 12 | + * property laws, including trade secret and copyright laws. |
| 13 | + * Dissemination of this information or reproduction of this material |
| 14 | + * is strictly forbidden unless prior written permission is obtained |
| 15 | + * from Adobe. |
| 16 | + * ************************************************************************ |
| 17 | + */ |
| 18 | +--> |
| 19 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 20 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 21 | + <test name="AdminCMSPageCreatePageWithBlockInNonStandardPlaceTest"> |
| 22 | + <annotations> |
| 23 | + <features value="Cms"/> |
| 24 | + <stories value="Create a CMS Page via the Admin"/> |
| 25 | + <title value="Create CMS Page that puts block in non standard place via the Admin"/> |
| 26 | + <description value="Admin should be able to create a CMS Page with standard block in custom place"/> |
| 27 | + <severity value="MAJOR"/> |
| 28 | + <testCaseId value="AC-10974"/> |
| 29 | + <useCaseId value="ACP2E-2693"/> |
| 30 | + <group value="backend"/> |
| 31 | + <group value="Cms"/> |
| 32 | + <group value="WYSIWYGDisabled"/> |
| 33 | + <group value="pr_exclude"/> |
| 34 | + </annotations> |
| 35 | + <before> |
| 36 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 37 | + </before> |
| 38 | + <after> |
| 39 | + <!-- Clear Homepage --> |
| 40 | + <actionGroup ref="AdminEditCMSPageContentActionGroup" stepKey="clearRecentlyViewedWidgetsFromCMSContent"> |
| 41 | + <argument name="content" value="{{CmsHomePageContent.content}}"/> |
| 42 | + <argument name="pageId" value="{{CmsHomePageContent.page_id}}"/> |
| 43 | + </actionGroup> |
| 44 | + |
| 45 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> |
| 46 | + </after> |
| 47 | + |
| 48 | + <!-- Add Subscribe block to HomePage --> |
| 49 | + <actionGroup ref="AdminEditCMSPageContentActionGroup" stepKey="addSubscribeBlockToHomePage"> |
| 50 | + <argument name="content" value="{{block class='Magento\Newsletter\Block\Subscribe' name='home.form.subscribe' template='Magento_Newsletter::subscribe.phtml'}}"/> |
| 51 | + <argument name="pageId" value="{{CmsHomePageContent.page_id}}"/> |
| 52 | + </actionGroup> |
| 53 | + |
| 54 | + <!-- Verify page with Subscribe block on frontend --> |
| 55 | + <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="amOnHomePage"/> |
| 56 | + <actionGroup ref="AssertStoreFrontCMSPageContentActionGroup" stepKey="verifySubscribeBlockToHomePage"> |
| 57 | + <argument name="cmsContent" value="Subscribe"/> |
| 58 | + </actionGroup> |
| 59 | + |
| 60 | + <!-- Add Contact block to HomePage --> |
| 61 | + <actionGroup ref="AdminEditCMSPageContentActionGroup" stepKey="addContactBlockToHomePage"> |
| 62 | + <argument name="content" value="{{block class='Magento\Contact\Block\ContactForm' name='home.form.contact' template='Magento_Contact::form.phtml'}}"/> |
| 63 | + <argument name="pageId" value="{{CmsHomePageContent.page_id}}"/> |
| 64 | + </actionGroup> |
| 65 | + |
| 66 | + <!-- Verify page with Contact block on frontend --> |
| 67 | + <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="amOnHomePage2"/> |
| 68 | + <actionGroup ref="AssertStoreFrontCMSPageContentActionGroup" stepKey="verifyContactBlockToHomePage"> |
| 69 | + <argument name="cmsContent" value="Phone"/> |
| 70 | + </actionGroup> |
| 71 | + |
| 72 | + <!-- Add Forgot Password block to HomePage --> |
| 73 | + <actionGroup ref="AdminEditCMSPageContentActionGroup" stepKey="addForgotPasswordBlockToHomePage"> |
| 74 | + <argument name="content" value="{{block class='Magento\Customer\Block\Account\Forgotpassword' name='home.form.forgotpassword' template='Magento_Customer::form/forgotpassword.phtml'}}"/> |
| 75 | + <argument name="pageId" value="{{CmsHomePageContent.page_id}}"/> |
| 76 | + </actionGroup> |
| 77 | + |
| 78 | + <!-- Verify page with Forgot Password block on frontend --> |
| 79 | + <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="amOnHomePage3"/> |
| 80 | + <actionGroup ref="AssertStoreFrontCMSPageContentActionGroup" stepKey="verifyForgotPasswordBlockToHomePage"> |
| 81 | + <argument name="cmsContent" value="password"/> |
| 82 | + </actionGroup> |
| 83 | + |
| 84 | + <!-- Add Login block to HomePage --> |
| 85 | + <actionGroup ref="AdminEditCMSPageContentActionGroup" stepKey="addLoginBlockToHomePage"> |
| 86 | + <argument name="content" value="{{block class='Magento\Customer\Block\Form\Login' name='home.form.login' template='Magento_Customer::form/login.phtml'}}"/> |
| 87 | + <argument name="pageId" value="{{CmsHomePageContent.page_id}}"/> |
| 88 | + </actionGroup> |
| 89 | + |
| 90 | + <!-- Verify page with Login block on frontend --> |
| 91 | + <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="amOnHomePage4"/> |
| 92 | + <actionGroup ref="AssertStoreFrontCMSPageContentActionGroup" stepKey="verifyLoginBlockToHomePage"> |
| 93 | + <argument name="cmsContent" value="Registered"/> |
| 94 | + </actionGroup> |
| 95 | + |
| 96 | + <!-- Add Register block to HomePage --> |
| 97 | + <actionGroup ref="AdminEditCMSPageContentActionGroup" stepKey="addRegisterBlockToHomePage"> |
| 98 | + <argument name="content" value="{{block class='Magento\Customer\Block\Form\Register' name='home.form.register' template='Magento_Customer::form/register.phtml'}}"/> |
| 99 | + <argument name="pageId" value="{{CmsHomePageContent.page_id}}"/> |
| 100 | + </actionGroup> |
| 101 | + |
| 102 | + <!-- Verify page with Register block on frontend --> |
| 103 | + <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="amOnHomePage5"/> |
| 104 | + <actionGroup ref="AssertStoreFrontCMSPageContentActionGroup" stepKey="verifyRegisterBlockToHomePage"> |
| 105 | + <argument name="cmsContent" value="Personal"/> |
| 106 | + </actionGroup> |
| 107 | + |
| 108 | + <!-- Add Send To Friend block to HomePage --> |
| 109 | + <actionGroup ref="AdminEditCMSPageContentActionGroup" stepKey="addSendToFriendBlockToHomePage"> |
| 110 | + <argument name="content" value="{{block class='Magento\SendFriend\Block\Send' name='home.form.send' template='Magento_SendFriend::send.phtml'}}"/> |
| 111 | + <argument name="pageId" value="{{CmsHomePageContent.page_id}}"/> |
| 112 | + </actionGroup> |
| 113 | + |
| 114 | + <!-- Verify page with Send To Friend block on frontend --> |
| 115 | + <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="amOnHomePage6"/> |
| 116 | + <actionGroup ref="AssertStoreFrontCMSPageContentActionGroup" stepKey="verifySendToFriendBlockToHomePage"> |
| 117 | + <argument name="cmsContent" value="Sender"/> |
| 118 | + </actionGroup> |
| 119 | + |
| 120 | + </test> |
| 121 | +</tests> |
0 commit comments