Skip to content

Commit b041608

Browse files
committed
BACKWARD COMPATIBILITY: Deprecated ActionGroups to make change Backward Compatible.
1 parent 5f90f1a commit b041608

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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+
<!--
10+
NOTICE: Action Groups in this file are DEPRECATED and SHOULD NOT BE USED anymore.
11+
Please find the Comment with proper replacement for each of ActionGroups provided.
12+
-->
13+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
14+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
15+
<actionGroup name="StorefrontCreateNewAccountNewsletterChecked" extends="SignUpNewUserFromStorefrontActionGroup">
16+
<annotations>
17+
<description>EXTENDS: SignUpNewUserFromStorefrontActionGroup. Clicks on 'Sign Up for Newsletter'. Validates that the Subscription Confirmation message is present and correct.</description>
18+
</annotations>
19+
20+
<!-- NOTICE: This ActionGroup is DEPRECATED! Use `StorefrontCreateNewAccountNewsletterCheckedActionGroup` instead -->
21+
<click selector="{{StorefrontCustomerCreateFormSection.signUpForNewsletter}}" stepKey="selectSignUpForNewsletterCheckbox" after="fillLastName"/>
22+
<see stepKey="seeDescriptionNewsletter" userInput='You are subscribed to "General Subscription".' selector="{{CustomerMyAccountPage.DescriptionNewsletter}}"/>
23+
</actionGroup>
24+
25+
<actionGroup name="StorefrontCreateNewAccountNewsletterUnchecked" extends="SignUpNewUserFromStorefrontActionGroup">
26+
<annotations>
27+
<description>EXTENDS: SignUpNewUserFromStorefrontActionGroup. Validates that the you are NOT subscribed message is present and correct.</description>
28+
</annotations>
29+
<arguments>
30+
<argument name="Customer"/>
31+
<argument name="Store"/>
32+
</arguments>
33+
34+
<!-- NOTICE: This ActionGroup is DEPRECATED! Use `StorefrontCreateNewAccountNewsletterUncheckedActionGroup` instead -->
35+
<amOnPage stepKey="amOnStorefrontPage" url="{{Store.code}}"/>
36+
<see stepKey="seeDescriptionNewsletter" userInput="You aren't subscribed to our newsletter." selector="{{CustomerMyAccountPage.DescriptionNewsletter}}"/>
37+
<see stepKey="seeThankYouMessage" userInput="Thank you for registering with NewStore."/>
38+
</actionGroup>
39+
</actionGroups>

0 commit comments

Comments
 (0)