Skip to content

Commit b8aa453

Browse files
committed
ACP2E-2693: [Cloud] Frontend not loading due to issue in newsletter template
1 parent 8080490 commit b8aa453

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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"
9+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
10+
<test name="AdminCMSPageCreatePageWithBlockInNonStandardPlaceTest">
11+
<annotations>
12+
<features value="Cms"/>
13+
<stories value="Create a CMS Page via the Admin"/>
14+
<title value="Create CMS Page that puts block in non standard place via the Admin"/>
15+
<description value="Admin should be able to create a CMS Page with standard block in custom place"/>
16+
<severity value="MAJOR"/>
17+
<testCaseId value="AC-10974"/>
18+
<useCaseId value="ACP2E-2639"/>
19+
<group value="backend"/>
20+
<group value="Cms"/>
21+
<group value="WYSIWYGDisabled"/>
22+
<group value="pr_exclude"/>
23+
</annotations>
24+
<before>
25+
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
26+
</before>
27+
<after>
28+
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
29+
</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">
34+
<argument name="content" value="{{block class=&apos;Magento\Newsletter\Block\Subscribe&apos; name=&apos;home.form.subscribe&apos; template=&apos;Magento_Newsletter::subscribe.phtml&apos;}}"/>
35+
</actionGroup>
36+
<actionGroup ref="AdminSelectCMSPageStoreViewActionGroup" stepKey="selectCMSPageStoreViewForPageWithBlock">
37+
<argument name="storeViewName" value="Default Store View"/>
38+
</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}}"/>
44+
</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}}"/>
49+
</actionGroup>
50+
<!--Delete page with block-->
51+
<actionGroup ref="DeletePageByUrlKeyActionGroup" stepKey="deletePageWithBlock">
52+
<argument name="UrlKey" value="{{_duplicatedCMSPage.identifier}}"/>
53+
</actionGroup>
54+
</test>
55+
</tests>

0 commit comments

Comments
 (0)