Skip to content

Commit 21c0bff

Browse files
committed
Test has been added
1 parent 7889a6f commit 21c0bff

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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="StorefrontNewsletterSubscriptionDisabledForStoreViewAtRegistrationTest">
12+
<annotations>
13+
<features value="Newsletter"/>
14+
<stories value="Disabled Newsletter Subscription for store View"/>
15+
<title value="Disabled Newsletter Subscription for store View"/>
16+
<description value="Option to subscribe should not be displayed at registration form if it is switched off for current store"/>
17+
<severity value="AVERAGE"/>
18+
<group value="newsletter"/>
19+
<group value="configuration"/>
20+
<testCaseId value="MC-*"/>
21+
</annotations>
22+
<before>
23+
<magentoCLI command="config:set --scope=stores --scope-code=default newsletter/general/active 0" stepKey="disableSubscriptionForStore"/>
24+
<magentoCLI command="cache:clean config" stepKey="cleanCache"/>
25+
</before>
26+
<after>
27+
<magentoCLI command="config:set --scope=stores --scope-code=default newsletter/general/active 1" stepKey="enableSubscriptionForStore"/>
28+
<magentoCLI command="cache:clean config" stepKey="cleanCacheAgain"/>
29+
</after>
30+
<actionGroup ref="StorefrontOpenCustomerAccountCreatePageActionGroup" stepKey="openCreateAccountPage"/>
31+
<waitForPageLoad stepKey="waitForPageLoad"/>
32+
<dontSeeElement selector="{{StorefrontCustomerCreateFormSection.signUpForNewsletter}}" stepKey="checkNoSubscriptionOption"/>
33+
</test>
34+
</tests>

0 commit comments

Comments
 (0)