Skip to content

Commit 913f88a

Browse files
committed
MAGETWO-95238: Cannot reset customer password from Admin Panel
- added functional test to cover the bug fix
1 parent ac21289 commit 913f88a

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

app/code/Magento/Customer/Test/Mftf/Section/AdminCustomerMainActionsSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
1111
<section name="AdminCustomerMainActionsSection">
1212
<element name="saveButton" type="button" selector="#save" timeout="30"/>
13+
<element name="resetPassword" type="button" selector="#resetPassword" timeout="30"/>
1314
</section>
1415
</sections>
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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+

0 commit comments

Comments
 (0)