File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed
app/code/Magento/Customer/Test/Mftf Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 11
11
<actionGroup name =" StorefrontCustomerResetPasswordActionGroup" >
12
12
<arguments >
13
13
<argument name =" email" type =" string" />
14
- <argument name =" message" type =" string" defaultValue =" " />
15
- <argument name =" messageType" type =" string" defaultValue =" success" />
16
14
</arguments >
17
15
18
16
<amOnPage stepKey =" amOnSignInPage" url =" {{StorefrontCustomerSignInPage.url}}" />
22
20
<fillField stepKey =" fillEmailField" userInput =" {{email}}" selector =" {{StorefrontForgotPasswordSection.email}}" />
23
21
<click stepKey =" clickResetPassword" selector =" {{StorefrontForgotPasswordSection.resetMyPasswordButton}}" />
24
22
<waitForPageLoad stepKey =" waitForPageLoaded" />
23
+ </actionGroup >
24
+
25
+ <actionGroup name =" AssertCustomerResetPasswordActionGroup" >
26
+ <arguments >
27
+ <argument name =" url" type =" string" />
28
+ <argument name =" message" type =" string" defaultValue =" " />
29
+ <argument name =" messageType" type =" string" defaultValue =" success" />
30
+ </arguments >
31
+
32
+ <seeInCurrentUrl stepKey =" seeInSignInPage" url =" {{url}}" />
25
33
<waitForElementVisible selector =" {{StorefrontCustomerLoginMessagesSection.messageByType(messageType)}}" stepKey =" waitForMessage" />
26
34
<see stepKey =" seeMessage" userInput =" {{message}}" selector =" {{StorefrontCustomerLoginMessagesSection.messageByType(messageType)}}" />
27
35
</actionGroup >
Original file line number Diff line number Diff line change 28
28
29
29
<actionGroup ref =" StorefrontCustomerResetPasswordActionGroup" stepKey =" resetPasswordFirstAttempt" >
30
30
<argument name =" email" value =" $$customer.email$$" />
31
+ </actionGroup >
32
+ <actionGroup ref =" AssertCustomerResetPasswordActionGroup" stepKey =" seePageWithSuccessMessage" >
33
+ <argument name =" url" value =" {{StorefrontCustomerSignInPage.url}}" />
31
34
<argument name =" message" value =" If there is an account associated with $$customer.email$$ you will receive an email with a link to reset your password." />
32
35
</actionGroup >
33
36
<actionGroup ref =" StorefrontCustomerResetPasswordActionGroup" stepKey =" resetPasswordSecondAttempt" >
34
37
<argument name =" email" value =" $$customer.email$$" />
38
+ </actionGroup >
39
+ <actionGroup ref =" AssertCustomerResetPasswordActionGroup" stepKey =" seePageWithErrorMessage" >
40
+ <argument name =" url" value =" {{StorefrontForgotPasswordPage.url}}" />
35
41
<
argument name =
" message" value =
" We received too many requests for password resets. Please wait and try again later or contact [email protected] ." />
36
42
<argument name =" messageType" value =" error" />
37
43
</actionGroup >
You can’t perform that action at this time.
0 commit comments