Skip to content

Commit df87bd7

Browse files
committed
MC-10916: Update Customer Password on Storefront, Valid Current Password
MC-10917: Update Customer Password on Storefront, Invalid Current Password MC-10918: Update Customer Password on Storefront, Invalid Confirmation Password
1 parent edc8f53 commit df87bd7

File tree

3 files changed

+21
-11
lines changed

3 files changed

+21
-11
lines changed

app/code/Magento/Customer/Test/Mftf/ActionGroup/LoginToStorefrontActionGroup.xml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,4 @@
1616
<fillField stepKey="fillPassword" userInput="{{Customer.password}}" selector="{{StorefrontCustomerSignInFormSection.passwordField}}"/>
1717
<click stepKey="clickSignInAccountButton" selector="{{StorefrontCustomerSignInFormSection.signInAccountButton}}"/>
1818
</actionGroup>
19-
<actionGroup name="LoginToStorefrontWithEmailAndPasswordActionGroup">
20-
<arguments>
21-
<argument name="email" type="string"/>
22-
<argument name="password" type="string"/>
23-
</arguments>
24-
<amOnPage stepKey="amOnSignInPage" url="{{StorefrontCustomerSignInPage.url}}"/>
25-
<fillField stepKey="fillEmail" userInput="{{email}}" selector="{{StorefrontCustomerSignInFormSection.emailField}}"/>
26-
<fillField stepKey="fillPassword" userInput="{{password}}" selector="{{StorefrontCustomerSignInFormSection.passwordField}}"/>
27-
<click stepKey="clickSignInAccountButton" selector="{{StorefrontCustomerSignInFormSection.signInAccountButton}}"/>
28-
</actionGroup>
2919
</actionGroups>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
10+
<actionGroup name="LoginToStorefrontWithEmailAndPassword">
11+
<arguments>
12+
<argument name="email" type="string"/>
13+
<argument name="password" type="string"/>
14+
</arguments>
15+
<amOnPage stepKey="amOnSignInPage" url="{{StorefrontCustomerSignInPage.url}}"/>
16+
<fillField stepKey="fillEmail" userInput="{{email}}" selector="{{StorefrontCustomerSignInFormSection.emailField}}"/>
17+
<fillField stepKey="fillPassword" userInput="{{password}}" selector="{{StorefrontCustomerSignInFormSection.passwordField}}"/>
18+
<click stepKey="clickSignInAccountButton" selector="{{StorefrontCustomerSignInFormSection.signInAccountButton}}"/>
19+
</actionGroup>
20+
</actionGroups>

app/code/Magento/Customer/Test/Mftf/Test/StorefrontUpdateCustomerPasswordTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<click stepKey="saveChange" selector="{{StorefrontCustomerAccountInformationSection.saveButton}}"/>
3939
<see stepKey="verifyMessage" userInput="You saved the account information." selector="{{StorefrontCustomerMessagesSection.successMessage}}"/>
4040
<actionGroup stepKey="logout" ref="StorefrontCustomerLogoutActionGroup"/>
41-
<actionGroup stepKey="loginWithNewPassword" ref="LoginToStorefrontWithEmailAndPasswordActionGroup">
41+
<actionGroup stepKey="loginWithNewPassword" ref="LoginToStorefrontWithEmailAndPassword">
4242
<argument name="email" value="$$customer.email$$"/>
4343
<argument name="password" value="$$customer.password$$#"/>
4444
</actionGroup>

0 commit comments

Comments
 (0)