|
25 | 25 | <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
|
26 | 26 | </before>
|
27 | 27 | <after>
|
| 28 | + <!-- Clear Homepage --> |
| 29 | + <actionGroup ref="AdminEditCMSPageContentActionGroup" stepKey="clearRecentlyViewedWidgetsFromCMSContent"> |
| 30 | + <argument name="content" value="{{CmsHomePageContent.content}}"/> |
| 31 | + <argument name="pageId" value="{{CmsHomePageContent.page_id}}"/> |
| 32 | + </actionGroup> |
| 33 | + |
28 | 34 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
|
29 | 35 | </after>
|
30 |
| - <!--Go to New CMS Page page--> |
31 |
| - <actionGroup ref="AdminOpenCreateNewCMSPageActionGroup" stepKey="navigateToCreateNewPage"/> |
32 |
| - <actionGroup ref="FillOutCMSPageContent" stepKey="fillBasicPageData"/> |
33 |
| - <actionGroup ref="AdminFillCMSPageContentFieldActionGroup" stepKey="fillContentField"> |
| 36 | + |
| 37 | + <!-- Add Subscribe block to HomePage --> |
| 38 | + <actionGroup ref="AdminEditCMSPageContentActionGroup" stepKey="addSubscribeBlockToHomePage"> |
34 | 39 | <argument name="content" value="{{block class='Magento\Newsletter\Block\Subscribe' name='home.form.subscribe' template='Magento_Newsletter::subscribe.phtml'}}"/>
|
| 40 | + <argument name="pageId" value="{{CmsHomePageContent.page_id}}"/> |
35 | 41 | </actionGroup>
|
36 |
| - <actionGroup ref="AdminSelectCMSPageStoreViewActionGroup" stepKey="selectCMSPageStoreViewForPageWithBlock"> |
37 |
| - <argument name="storeViewName" value="Default Store View"/> |
| 42 | + |
| 43 | + <!-- Verify page with Subscribe block on frontend --> |
| 44 | + <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="amOnHomePage"/> |
| 45 | + <actionGroup ref="AssertStoreFrontCMSPageContentActionGroup" stepKey="verifySubscribeBlockToHomePage"> |
| 46 | + <argument name="cmsContent" value="Subscribe"/> |
38 | 47 | </actionGroup>
|
39 |
| - <!--Verify successfully saved--> |
40 |
| - <actionGroup ref="SaveCmsPageActionGroup" stepKey="savePageWithBlock"/> |
41 |
| - <!--verify page on frontend--> |
42 |
| - <actionGroup ref="StorefrontGoToCMSPageActionGroup" stepKey="navigateToPageOnStoreFront"> |
43 |
| - <argument name="identifier" value="{{_duplicatedCMSPage.identifier}}"/> |
| 48 | + |
| 49 | + <!-- Add Contact block to HomePage --> |
| 50 | + <actionGroup ref="AdminEditCMSPageContentActionGroup" stepKey="addContactBlockToHomePage"> |
| 51 | + <argument name="content" value="{{block class='Magento\Contact\Block\ContactForm' name='home.form.contact' template='Magento_Contact::form.phtml'}}"/> |
| 52 | + <argument name="pageId" value="{{CmsHomePageContent.page_id}}"/> |
44 | 53 | </actionGroup>
|
45 |
| - <actionGroup ref="AssertStoreFrontCMSPageActionGroup" stepKey="verifyPageWithBlockDataOnFrontend"> |
46 |
| - <argument name="cmsTitle" value="{{_duplicatedCMSPage.title}}"/> |
47 |
| - <argument name="cmsContent" value="Subscribe"/> |
48 |
| - <argument name="cmsContentHeading" value="{{_duplicatedCMSPage.content_heading}}"/> |
| 54 | + |
| 55 | + <!-- Verify page with Contact block on frontend --> |
| 56 | + <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="amOnHomePage2"/> |
| 57 | + <actionGroup ref="AssertStoreFrontCMSPageContentActionGroup" stepKey="verifyContactBlockToHomePage"> |
| 58 | + <argument name="cmsContent" value="Phone"/> |
| 59 | + </actionGroup> |
| 60 | + |
| 61 | + <!-- Add Forgot Password block to HomePage --> |
| 62 | + <actionGroup ref="AdminEditCMSPageContentActionGroup" stepKey="addForgotPasswordBlockToHomePage"> |
| 63 | + <argument name="content" value="{{block class='Magento\Customer\Block\Account\Forgotpassword' name='home.form.forgotpassword' template='Magento_Customer::form/forgotpassword.phtml'}}"/> |
| 64 | + <argument name="pageId" value="{{CmsHomePageContent.page_id}}"/> |
| 65 | + </actionGroup> |
| 66 | + |
| 67 | + <!-- Verify page with Forgot Password block on frontend --> |
| 68 | + <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="amOnHomePage3"/> |
| 69 | + <actionGroup ref="AssertStoreFrontCMSPageContentActionGroup" stepKey="verifyForgotPasswordBlockToHomePage"> |
| 70 | + <argument name="cmsContent" value="password"/> |
| 71 | + </actionGroup> |
| 72 | + |
| 73 | + <!-- Add Login block to HomePage --> |
| 74 | + <actionGroup ref="AdminEditCMSPageContentActionGroup" stepKey="addLoginBlockToHomePage"> |
| 75 | + <argument name="content" value="{{block class='Magento\Customer\Block\Form\Login' name='home.form.login' template='Magento_Customer::form/login.phtml'}}"/> |
| 76 | + <argument name="pageId" value="{{CmsHomePageContent.page_id}}"/> |
| 77 | + </actionGroup> |
| 78 | + |
| 79 | + <!-- Verify page with Login block on frontend --> |
| 80 | + <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="amOnHomePage4"/> |
| 81 | + <actionGroup ref="AssertStoreFrontCMSPageContentActionGroup" stepKey="verifyLoginBlockToHomePage"> |
| 82 | + <argument name="cmsContent" value="Registered"/> |
| 83 | + </actionGroup> |
| 84 | + |
| 85 | + <!-- Add Register block to HomePage --> |
| 86 | + <actionGroup ref="AdminEditCMSPageContentActionGroup" stepKey="addRegisterBlockToHomePage"> |
| 87 | + <argument name="content" value="{{block class='Magento\Customer\Block\Form\Register' name='home.form.register' template='Magento_Customer::form/register.phtml'}}"/> |
| 88 | + <argument name="pageId" value="{{CmsHomePageContent.page_id}}"/> |
| 89 | + </actionGroup> |
| 90 | + |
| 91 | + <!-- Verify page with Register block on frontend --> |
| 92 | + <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="amOnHomePage5"/> |
| 93 | + <actionGroup ref="AssertStoreFrontCMSPageContentActionGroup" stepKey="verifyRegisterBlockToHomePage"> |
| 94 | + <argument name="cmsContent" value="Personal"/> |
| 95 | + </actionGroup> |
| 96 | + |
| 97 | + <!-- Add Send To Friend block to HomePage --> |
| 98 | + <actionGroup ref="AdminEditCMSPageContentActionGroup" stepKey="addSendToFriendBlockToHomePage"> |
| 99 | + <argument name="content" value="{{block class='Magento\SendFriend\Block\Send' name='home.form.send' template='Magento_SendFriend::send.phtml'}}"/> |
| 100 | + <argument name="pageId" value="{{CmsHomePageContent.page_id}}"/> |
49 | 101 | </actionGroup>
|
50 |
| - <!--Delete page with block--> |
51 |
| - <actionGroup ref="DeletePageByUrlKeyActionGroup" stepKey="deletePageWithBlock"> |
52 |
| - <argument name="UrlKey" value="{{_duplicatedCMSPage.identifier}}"/> |
| 102 | + |
| 103 | + <!-- Verify page with Send To Friend block on frontend --> |
| 104 | + <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="amOnHomePage6"/> |
| 105 | + <actionGroup ref="AssertStoreFrontCMSPageContentActionGroup" stepKey="verifySendToFriendBlockToHomePage"> |
| 106 | + <argument name="cmsContent" value="Sender"/> |
53 | 107 | </actionGroup>
|
| 108 | + |
54 | 109 | </test>
|
55 | 110 | </tests>
|
0 commit comments