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 =" StorefrontUpdateCustomerPasswordValidCurrentPasswordTest" >
12
+ <annotations >
13
+ <features value =" Customer" />
14
+ <stories value =" Customer Update Password" />
15
+ <title value =" Update Customer Password on Storefront, Valid Current Password" />
16
+ <description value =" Update Customer Password on Storefront, Valid Current Password" />
17
+ <severity value =" CRITICAL" />
18
+ <testCaseId value =" MC-10916" />
19
+ <group value =" Customer" />
20
+ <group value =" mtf_migrated" />
21
+ </annotations >
22
+ <before >
23
+ <createData stepKey =" customer" entity =" Simple_US_Customer" />
24
+ </before >
25
+ <after >
26
+ <deleteData stepKey =" deleteCustomer" createDataKey =" customer" />
27
+ </after >
28
+
29
+ <!-- Log in to Storefront as Customer -->
30
+ <actionGroup stepKey =" login" ref =" LoginToStorefrontActionGroup" >
31
+ <argument name =" Customer" value =" $$customer$$" />
32
+ </actionGroup >
33
+ <seeInCurrentUrl stepKey =" onCustomerAccountPage" url =" customer/account" />
34
+ <click stepKey =" clickChangePassword" selector =" {{StorefrontCustomerDashboardAccountInformationSection.changePassword}}" />
35
+ <fillField stepKey =" fillValidCurrentPassword" userInput =" $$customer.password$$" selector =" {{StorefrontCustomerAccountInformationSection.currentPassword}}" />
36
+ <fillField stepKey =" fillNewPassword" userInput =" $$customer.password$$#" selector =" {{StorefrontCustomerAccountInformationSection.newPassword}}" />
37
+ <fillField stepKey =" fillNewPasswordConfirmation" userInput =" $$customer.password$$#" selector =" {{StorefrontCustomerAccountInformationSection.confirmNewPassword}}" />
38
+ <click stepKey =" saveChange" selector =" {{StorefrontCustomerAccountInformationSection.saveButton}}" />
39
+ <see stepKey =" verifyMessage" userInput =" You saved the account information." selector =" {{StorefrontCustomerMessagesSection.successMessage}}" />
40
+ <actionGroup stepKey =" logout" ref =" StorefrontCustomerLogoutActionGroup" />
41
+ <actionGroup stepKey =" loginWithNewPassword" ref =" LoginToStorefrontWithEmailAndPassword" >
42
+ <argument name =" email" value =" $$customer.email$$" />
43
+ <argument name =" password" value =" $$customer.password$$#" />
44
+ </actionGroup >
45
+ <see stepKey =" seeMyEmail" userInput =" $$customer.email$$" selector =" {{StorefrontCustomerDashboardAccountInformationSection.ContactInformation}}" />
46
+ </test >
47
+ <test name =" StorefrontUpdateCustomerPasswordInvalidCurrentPasswordTest" extends =" StorefrontUpdateCustomerPasswordValidCurrentPasswordTest" >
48
+ <annotations >
49
+ <features value =" Customer" />
50
+ <stories value =" Customer Update Password" />
51
+ <title value =" Update Customer Password on Storefront, Invalid Current Password" />
52
+ <description value =" Update Customer Password on Storefront, Invalid Current Password" />
53
+ <severity value =" CRITICAL" />
54
+ <testCaseId value =" MC-10917" />
55
+ <group value =" Customer" />
56
+ <group value =" mtf_migrated" />
57
+ </annotations >
58
+
59
+ <fillField stepKey =" fillValidCurrentPassword" userInput =" $$customer.password$$^" selector =" {{StorefrontCustomerAccountInformationSection.currentPassword}}" />
60
+ <see stepKey =" verifyMessage" userInput =" The password doesn't match this account. Verify the password and try again." selector =" {{StorefrontCustomerMessagesSection.errorMessage}}" />
61
+ <remove keyForRemoval =" loginWithNewPassword" />
62
+ <remove keyForRemoval =" seeMyEmail" />
63
+ </test >
64
+ <test name =" StorefrontUpdateCustomerPasswordInvalidConfirmationPasswordTest" extends =" StorefrontUpdateCustomerPasswordValidCurrentPasswordTest" >
65
+ <annotations >
66
+ <features value =" Customer" />
67
+ <stories value =" Customer Update Password" />
68
+ <title value =" Update Customer Password on Storefront, Invalid Confirmation Password" />
69
+ <description value =" Update Customer Password on Storefront, Invalid Confirmation Password" />
70
+ <severity value =" CRITICAL" />
71
+ <testCaseId value =" MC-10918" />
72
+ <group value =" Customer" />
73
+ <group value =" mtf_migrated" />
74
+ </annotations >
75
+
76
+ <fillField stepKey =" fillNewPasswordConfirmation" userInput =" $$customer.password$$^" selector =" {{StorefrontCustomerAccountInformationSection.confirmNewPassword}}" />
77
+ <see stepKey =" verifyMessage" userInput =" Please enter the same value again." selector =" {{StorefrontCustomerAccountInformationSection.confirmNewPasswordError}}" />
78
+ <remove keyForRemoval =" loginWithNewPassword" />
79
+ <remove keyForRemoval =" seeMyEmail" />
80
+ </test >
81
+ </tests >
0 commit comments