-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENGCOM-8675: Changed Newsletter Enabled/Disable config settings by pr…
…iority, store scope then default scope #31208
- Loading branch information
Showing
2 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
...Test/Mftf/Test/StorefrontNewsletterSubscriptionDisabledForStoreViewAtRegistrationTest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
|
||
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> | ||
<test name="StorefrontNewsletterSubscriptionDisabledForStoreViewAtRegistrationTest"> | ||
<annotations> | ||
<features value="Newsletter"/> | ||
<stories value="Disabled Newsletter Subscription for store View"/> | ||
<title value="Disabled Newsletter Subscription for store View"/> | ||
<description value="Option to subscribe should not be displayed at registration form if it is switched off for current store"/> | ||
<severity value="AVERAGE"/> | ||
<group value="newsletter"/> | ||
<group value="configuration"/> | ||
<testCaseId value="MC-*"/> | ||
</annotations> | ||
<before> | ||
<magentoCLI command="config:set --scope=stores --scope-code=default newsletter/general/active 0" stepKey="disableSubscriptionForStore"/> | ||
</before> | ||
<after> | ||
<magentoCLI command="config:set --scope=stores --scope-code=default newsletter/general/active 1" stepKey="enableSubscriptionForStore"/> | ||
</after> | ||
<actionGroup ref="StorefrontOpenCustomerAccountCreatePageActionGroup" stepKey="openCreateAccountPage"/> | ||
<waitForPageLoad stepKey="waitForPageLoad"/> | ||
<dontSeeElement selector="{{StorefrontCustomerCreateFormSection.signUpForNewsletter}}" stepKey="checkNoSubscriptionOption"/> | ||
</test> | ||
</tests> |