|
10 | 10 | xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
|
11 | 11 | <test name="SecureChangingCustomerEmailTest">
|
12 | 12 | <annotations>
|
13 |
| - <features value="Security" /> |
14 |
| - <stories value="Changing Customer's email" /> |
15 |
| - <title value="Changing Customer Email Test" /> |
16 |
| - <description value="Changing Customer's email with correct and wrong passwords" /> |
17 |
| - <group value="security" /> |
18 |
| - <group value="mtf_migrated" /> |
| 13 | + <features value="Security"/> |
| 14 | + <stories value="Changing Customer's email"/> |
| 15 | + <title value="Changing Customer Email Test"/> |
| 16 | + <description value="Changing Customer's email with correct and wrong passwords"/> |
| 17 | + <group value="security"/> |
| 18 | + <group value="mtf_migrated"/> |
19 | 19 | </annotations>
|
20 | 20 |
|
21 | 21 | <before>
|
22 |
| - <createData entity="Simple_US_Customer" stepKey="customer" /> |
| 22 | + <createData entity="Simple_US_Customer" stepKey="customer"/> |
23 | 23 | </before>
|
24 | 24 | <after>
|
25 |
| - <deleteData createDataKey="customer" stepKey="deleteCustomer" /> |
| 25 | + <deleteData createDataKey="customer" stepKey="deleteCustomer"/> |
26 | 26 | </after>
|
27 | 27 |
|
28 | 28 | <!-- TEST BODY -->
|
29 | 29 | <!-- Go to storefront home page -->
|
30 |
| - <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="openStoreFrontHomePage" /> |
| 30 | + <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="openStoreFrontHomePage"/> |
31 | 31 | <!-- Login as created customer -->
|
32 | 32 | <actionGroup ref="LoginToStorefrontActionGroup" stepKey="loginToStorefrontAccount">
|
33 |
| - <argument name="Customer" value="$$customer$$" /> |
| 33 | + <argument name="Customer" value="$$customer$$"/> |
34 | 34 | </actionGroup>
|
35 | 35 | <!-- Navigate to "Account Information" tab First Time-->
|
36 |
| - <actionGroup ref="StorefrontOpenCustomerAccountInfoEditPageActionGroup" stepKey="goToCustomerEditPageFirstTime" /> |
| 36 | + <actionGroup ref="StorefrontOpenCustomerAccountInfoEditPageActionGroup" stepKey="goToCustomerEditPageFirstTime"/> |
37 | 37 | <!-- Checking Email checkbox, entering new email, saving with correct password -->
|
38 | 38 | <actionGroup ref="StorefrontCustomerChangeEmailActionGroup" stepKey="changeEmailCorrectAttempt">
|
39 |
| - <argument name="email" value="$$customer.email$$" /> |
40 |
| - <argument name="password" value="$$customer.password$$" /> |
| 39 | + <argument name="email" value="$$customer.email$$"/> |
| 40 | + <argument name="password" value="$$customer.password$$"/> |
| 41 | + </actionGroup> |
| 42 | + <!-- See Success Notify--> |
| 43 | + <actionGroup ref="AssertMessageCustomerChangeAccountInfoActionGroup" stepKey="seeSuccessMessage"> |
| 44 | + <argument name="message" value="You saved the account information."/> |
41 | 45 | </actionGroup>
|
42 | 46 | <!-- Navigate to "Account Information" tab Second Time-->
|
43 | 47 | <actionGroup ref="StorefrontOpenCustomerAccountInfoEditPageActionGroup" stepKey="goToCustomerEditPageSecondTime" />
|
44 | 48 | <!-- Checking Email checkbox, entering new email, saving with incorrect password -->
|
45 |
| - <actionGroup ref="StoreFrontCustomerChangeEmailWithIncorrectActionGroup" stepKey="changeEmailWrongAttempt"> |
46 |
| - <argument name="email" value="$$customer.email$$" /> |
47 |
| - <argument name="password" value="{incorrect.password}" /> |
| 49 | + <actionGroup ref="StorefrontCustomerChangeEmailActionGroup" stepKey="changeEmailWrongAttempt"> |
| 50 | + <argument name="email" value="$$customer.email$$"/> |
| 51 | + <argument name="password" value="{incorrect.password}"/> |
| 52 | + </actionGroup> |
| 53 | + <!-- See Failure Message--> |
| 54 | + <actionGroup ref="AssertMessageCustomerChangeAccountInfoActionGroup" stepKey="seeFailureMessage"> |
| 55 | + <argument name="message" value="The password doesn't match this account. Verify the password and try again."/> |
| 56 | + <argument name="messageType" value="error"/> |
48 | 57 | </actionGroup>
|
| 58 | + |
49 | 59 | <!-- END TEST BODY -->
|
50 | 60 |
|
51 | 61 | </test>
|
|
0 commit comments