File tree Expand file tree Collapse file tree 9 files changed +104
-38
lines changed
app/code/Magento/Customer/Test/Mftf Expand file tree Collapse file tree 9 files changed +104
-38
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
+ <actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
11
+ <actionGroup name =" AssertCustomerEditFormPasswordFieldActionGroup" >
12
+ <annotations >
13
+ <description >Validate the password is visible as plain text in customer account edit form.</description >
14
+ </annotations >
15
+ <arguments >
16
+ <argument name =" passwordFieldType" type =" string" defaultValue =" text" />
17
+ </arguments >
18
+
19
+ <assertElementContainsAttribute stepKey =" assertCurrentPasswordFieldType" >
20
+ <expectedResult selector =" {{StorefrontCustomerAccountInformationSection.currentPassword}}" attribute =" type" type =" string" >{{passwordFieldType}}</expectedResult >
21
+ </assertElementContainsAttribute >
22
+ <assertElementContainsAttribute stepKey =" assertNewPasswordFieldType" >
23
+ <expectedResult selector =" {{StorefrontCustomerAccountInformationSection.newPassword}}" attribute =" type" type =" string" >{{passwordFieldType}}</expectedResult >
24
+ </assertElementContainsAttribute >
25
+ <assertElementContainsAttribute stepKey =" assertConfirmNewPasswordFieldType" >
26
+ <expectedResult selector =" {{StorefrontCustomerAccountInformationSection.confirmNewPassword}}" attribute =" type" type =" string" >{{passwordFieldType}}</expectedResult >
27
+ </assertElementContainsAttribute >
28
+ </actionGroup >
29
+ </actionGroups >
Original file line number Diff line number Diff line change 8
8
9
9
<actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
10
xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
11
- <actionGroup name =" AssertPasswordFieldActionGroup " >
11
+ <actionGroup name =" AssertLoginFormPasswordFieldActionGroup " >
12
12
<annotations >
13
- <description >Validate the password is visible as plain text.</description >
13
+ <description >Validate the password is visible as plain text in login form .</description >
14
14
</annotations >
15
15
<arguments >
16
- <argument name =" fieldSelector" type =" string" />
17
16
<argument name =" passwordFieldType" type =" string" defaultValue =" text" />
18
17
</arguments >
19
18
20
19
<assertElementContainsAttribute stepKey =" assertPasswordFieldType" >
21
- <expectedResult selector =" {{fieldSelector }}" attribute =" type" type =" string" >{{passwordFieldType}}</expectedResult >
20
+ <expectedResult selector =" {{StorefrontCustomerSignInFormSection.passwordField }}" attribute =" type" type =" string" >{{passwordFieldType}}</expectedResult >
22
21
</assertElementContainsAttribute >
23
22
</actionGroup >
24
23
</actionGroups >
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 =" AssertRegistrationFormPasswordFieldActionGroup" >
12
+ <annotations >
13
+ <description >Validate the password is visible as plain text on customer registration form.</description >
14
+ </annotations >
15
+ <arguments >
16
+ <argument name =" passwordFieldType" type =" string" defaultValue =" text" />
17
+ </arguments >
18
+
19
+ <assertElementContainsAttribute stepKey =" assertPasswordFieldType" >
20
+ <expectedResult selector =" {{StorefrontCustomerCreateFormSection.passwordField}}" attribute =" type" type =" string" >{{passwordFieldType}}</expectedResult >
21
+ </assertElementContainsAttribute >
22
+ <assertElementContainsAttribute stepKey =" assertConfirmPasswordFieldType" >
23
+ <expectedResult selector =" {{StorefrontCustomerCreateFormSection.confirmPasswordField}}" attribute =" type" type =" string" >{{passwordFieldType}}</expectedResult >
24
+ </assertElementContainsAttribute >
25
+ </actionGroup >
26
+ </actionGroups >
Original file line number Diff line number Diff line change 8
8
9
9
<actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
10
xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
11
- <actionGroup name =" StorefrontClickShowPasswordActionGroup " >
11
+ <actionGroup name =" StorefrontCustomerEditFormClickShowPasswordActionGroup " >
12
12
<annotations >
13
- <description >Click on the show password checkbox</description >
13
+ <description >Click on the show password checkbox in customer account information form </description >
14
14
</annotations >
15
- <arguments >
16
- <argument name =" fieldSelector" type =" string" />
17
- </arguments >
18
-
19
- <click stepKey =" clickShowPasswordCheckbox" selector =" {{fieldSelector}}" />
15
+
16
+ <click stepKey =" clickShowPasswordCheckbox" selector =" {{StorefrontCustomerAccountInformationSection.showPasswordCheckbox}}" />
20
17
</actionGroup >
21
18
</actionGroups >
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 =" StorefrontLoginFormClickShowPasswordActionGroup" >
12
+ <annotations >
13
+ <description >Click on the show password checkbox in login form</description >
14
+ </annotations >
15
+
16
+ <click stepKey =" clickShowPasswordCheckbox" selector =" {{StorefrontCustomerSignInFormSection.showPasswordCheckbox}}" />
17
+ </actionGroup >
18
+ </actionGroups >
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 =" StorefrontRegistrationFormClickShowPasswordActionGroup" >
12
+ <annotations >
13
+ <description >Click on the show password checkbox in registration form</description >
14
+ </annotations >
15
+
16
+ <click stepKey =" clickShowPasswordCheckbox" selector =" {{StorefrontCustomerCreateFormSection.showPasswordCheckbox}}" />
17
+ </actionGroup >
18
+ </actionGroups >
Original file line number Diff line number Diff line change 33
33
<actionGroup ref =" StorefrontFillChangePasswordFormActionGroup" stepKey =" fillChangePasswordForm" >
34
34
<argument name =" customer" value =" Simple_US_Customer" />
35
35
</actionGroup >
36
- <actionGroup ref =" StorefrontClickShowPasswordActionGroup" stepKey =" clickShowPasswordCheckbox" >
37
- <argument name =" fieldSelector" value =" {{StorefrontCustomerAccountInformationSection.showPasswordCheckbox}}" />
38
- </actionGroup >
39
- <actionGroup ref =" AssertPasswordFieldActionGroup" stepKey =" AssertCurrentPasswordField" >
40
- <argument name =" fieldSelector" value =" {{StorefrontCustomerAccountInformationSection.currentPassword}}" />
41
- </actionGroup >
42
- <actionGroup ref =" AssertPasswordFieldActionGroup" stepKey =" AssertNewPasswordField" >
43
- <argument name =" fieldSelector" value =" {{StorefrontCustomerAccountInformationSection.newPassword}}" />
44
- </actionGroup >
45
- <actionGroup ref =" AssertPasswordFieldActionGroup" stepKey =" AssertNewConfirmPasswordField" >
46
- <argument name =" fieldSelector" value =" {{StorefrontCustomerAccountInformationSection.confirmNewPassword}}" />
47
- </actionGroup >
36
+ <actionGroup ref =" StorefrontCustomerEditFormClickShowPasswordActionGroup" stepKey =" clickShowPasswordCheckbox" />
37
+ <actionGroup ref =" AssertCustomerEditFormPasswordFieldActionGroup" stepKey =" AssertCurrentPasswordField" />
48
38
</test >
49
39
</tests >
Original file line number Diff line number Diff line change 22
22
<actionGroup ref =" StorefrontFillCustomerAccountCreationFormActionGroup" stepKey =" fillCreateAccountForm" >
23
23
<argument name =" customer" value =" Simple_US_Customer" />
24
24
</actionGroup >
25
- <actionGroup ref =" StorefrontClickShowPasswordActionGroup" stepKey =" clickShowPasswordCheckbox" >
26
- <argument name =" fieldSelector" value =" {{StorefrontCustomerCreateFormSection.showPasswordCheckbox}}" />
27
- </actionGroup >
28
- <actionGroup ref =" AssertPasswordFieldActionGroup" stepKey =" AssertPasswordField" >
29
- <argument name =" fieldSelector" value =" {{StorefrontCustomerCreateFormSection.passwordField}}" />
30
- </actionGroup >
31
- <actionGroup ref =" AssertPasswordFieldActionGroup" stepKey =" AssertConfirmPasswordField" >
32
- <argument name =" fieldSelector" value =" {{StorefrontCustomerCreateFormSection.confirmPasswordField}}" />
33
- </actionGroup >
25
+ <actionGroup ref =" StorefrontRegistrationFormClickShowPasswordActionGroup" stepKey =" clickShowPasswordCheckbox" />
26
+ <actionGroup ref =" AssertRegistrationFormPasswordFieldActionGroup" stepKey =" AssertPasswordField" />
34
27
</test >
35
28
</tests >
Original file line number Diff line number Diff line change 28
28
<actionGroup ref =" StorefrontFillCustomerLoginFormWithWrongPasswordActionGroup" stepKey =" fillLoginFormWithCustomerData" >
29
29
<argument name =" customer" value =" $$customer$$" />
30
30
</actionGroup >
31
- <actionGroup ref =" StorefrontClickShowPasswordActionGroup" stepKey =" clickShowPasswordCheckbox" >
32
- <argument name =" fieldSelector" value =" {{StorefrontCustomerSignInFormSection.showPasswordCheckbox}}" />
33
- </actionGroup >
34
- <actionGroup ref =" AssertPasswordFieldActionGroup" stepKey =" AssertPasswordField" >
35
- <argument name =" fieldSelector" value =" {{StorefrontCustomerSignInFormSection.passwordField}}" />
36
- </actionGroup >
31
+ <actionGroup ref =" StorefrontLoginFormClickShowPasswordActionGroup" stepKey =" clickShowPasswordCheckbox" />
32
+ <actionGroup ref =" AssertLoginFormPasswordFieldActionGroup" stepKey =" AssertPasswordField" />
37
33
</test >
38
34
</tests >
You can’t perform that action at this time.
0 commit comments