File tree Expand file tree Collapse file tree 5 files changed +44
-16
lines changed
dev/tests/functional/tests/app/Magento/Security/Test/TestCase Expand file tree Collapse file tree 5 files changed +44
-16
lines changed 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 =" StorefrontResetCustomerPasswordFailedTest" >
12
+ <before >
13
+ <magentoCLI command =" config:set {{StorefrontCustomerCaptchaDisableConfigData.path}} {{StorefrontCustomerCaptchaDisableConfigData.value}}" stepKey =" disableCaptcha" />
14
+ </before >
15
+ <after >
16
+ <magentoCLI command =" config:set {{StorefrontCustomerCaptchaEnableConfigData.path}} {{StorefrontCustomerCaptchaEnableConfigData.value}}" stepKey =" enableCaptcha" />
17
+ </after >
18
+ </test >
19
+ </tests >
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
+ <actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
11
+ <actionGroup name =" AssertCustomerResetPasswordActionGroup" >
12
+ <arguments >
13
+ <argument name =" url" type =" string" />
14
+ <argument name =" message" type =" string" defaultValue =" " />
15
+ <argument name =" messageType" type =" string" defaultValue =" success" />
16
+ </arguments >
17
+
18
+ <waitForElementVisible selector =" {{StorefrontCustomerLoginMessagesSection.messageByType(messageType)}}" stepKey =" waitForMessage" />
19
+ <see stepKey =" seeMessage" userInput =" {{message}}" selector =" {{StorefrontCustomerLoginMessagesSection.messageByType(messageType)}}" />
20
+ <seeInCurrentUrl stepKey =" seeCorrectCurrentUrl" url =" {{url}}" />
21
+ </actionGroup >
22
+ </actionGroups >
Original file line number Diff line number Diff line change 21
21
<click stepKey =" clickResetPassword" selector =" {{StorefrontForgotPasswordSection.resetMyPasswordButton}}" />
22
22
<waitForPageLoad stepKey =" waitForPageLoaded" />
23
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}}" />
33
- <waitForElementVisible selector =" {{StorefrontCustomerLoginMessagesSection.messageByType(messageType)}}" stepKey =" waitForMessage" />
34
- <see stepKey =" seeMessage" userInput =" {{message}}" selector =" {{StorefrontCustomerLoginMessagesSection.messageByType(messageType)}}" />
35
- </actionGroup >
36
24
</actionGroups >
Original file line number Diff line number Diff line change 13
13
<features value =" Customer" />
14
14
<title value =" Customer tries to reset password several times" />
15
15
<description value =" Customer tries to reset password several times" />
16
+ <severity value =" CRITICAL" />
17
+ <testCaseId value =" MC-14374" />
16
18
<group value =" Customer" />
17
19
<group value =" security" />
18
20
<group value =" mtf_migrated" />
19
21
</annotations >
20
22
<before >
21
- <magentoCLI command =" config:set customer/captcha/enable 0" stepKey =" disableCaptcha" />
22
23
<createData stepKey =" customer" entity =" Simple_US_Customer" />
23
24
</before >
24
25
<after >
25
- <magentoCLI command =" config:set customer/captcha/enable 1" stepKey =" enableCaptcha" />
26
26
<deleteData stepKey =" deleteCustomer" createDataKey =" customer" />
27
27
</after >
28
28
Original file line number Diff line number Diff line change 8
8
<config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" ../../../../../../../vendor/magento/mtf/etc/variations.xsd" >
9
9
<testCase name =" Magento\Security\Test\TestCase\ResetCustomerPasswordFailedTest" summary =" Reset customer password." >
10
10
<variation name =" ResetPasswordTestVariation" >
11
- <data name =" tag" xsi : type =" string" >mftf_migrated:yes</data >
12
- <data name =" tag" xsi : type =" string" >severity:S1</data >
11
+ <data name =" tag" xsi : type =" string" >severity:S1,mftf_migrated:yes</data >
13
12
<data name =" customer/dataset" xsi : type =" string" >customer_US</data >
14
13
<data name =" attempts" xsi : type =" string" >2</data >
15
14
<data name =" configData" xsi : type =" string" >captcha_storefront_disable</data >
You can’t perform that action at this time.
0 commit comments