File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed
app/code/Magento/Customer/Test/Mftf Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change 10
10
xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Page/etc/SectionObject.xsd" >
11
11
<section name =" AdminCustomerMainActionsSection" >
12
12
<element name =" saveButton" type =" button" selector =" #save" timeout =" 30" />
13
+ <element name =" resetPassword" type =" button" selector =" #resetPassword" timeout =" 30" />
13
14
</section >
14
15
</sections >
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 =" AdminResetCustomerPasswordTest" >
12
+ <annotations >
13
+ <features value =" Customer" />
14
+ <stories value =" Admin should be able to reset an existing customer's password" />
15
+ <description value =" Admin should be able to reset customer password" />
16
+ <severity value =" CRITICAL" />
17
+ <testCaseId value =" MAGETWO-30875" />
18
+ <group value =" customer" />
19
+ </annotations >
20
+ <before >
21
+ <createData entity =" Simple_US_Customer" stepKey =" customer" />
22
+ <actionGroup ref =" LoginAsAdmin" stepKey =" login" />
23
+ </before >
24
+ <after >
25
+ <deleteData createDataKey =" customer" stepKey =" deleteCustomer" />
26
+ <amOnPage url =" admin/admin/auth/logout/" stepKey =" amOnLogoutPage" />
27
+ </after >
28
+ <!-- Edit customer info-->
29
+ <actionGroup ref =" OpenEditCustomerFromAdminActionGroup" stepKey =" OpenEditCustomerFrom" >
30
+ <argument name =" customer" value =" $$customer$$" />
31
+ </actionGroup >
32
+ <click selector =" {{AdminCustomerMainActionsSection.resetPassword}}" stepKey =" resetPassword" />
33
+ <see userInput =" The customer will receive an email with a link to reset password." stepKey =" messageThatLinkToPasswordResetIsSent" />
34
+ </test >
35
+ </tests >
36
+
37
+
You can’t perform that action at this time.
0 commit comments