File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
app/code/Magento/Newsletter/Test/Mftf/Test Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change
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 >
You can’t perform that action at this time.
0 commit comments