28
28
<!-- Create New User-->
29
29
<actionGroup ref =" AdminOpenNewUserPageActionGroup" stepKey =" goToNewUserPage" />
30
30
<actionGroup ref =" AdminFillNewUserFormRequiredFieldsActionGroup" stepKey =" fillNewUserForm" >
31
- <argument name =" user" value =" NewAdminUser " />
31
+ <argument name =" user" value =" adminUserCorrectPassword " />
32
32
</actionGroup >
33
33
<actionGroup ref =" AdminClickSaveButtonOnUserFormActionGroup" stepKey =" saveNewUser" />
34
34
35
35
<!-- Configure 'Maximum Login Failures to Lockout Account'-->
36
- <actionGroup ref =" AdminOpenAdminSectionPageActionGroup " stepKey =" goToConfigurationPage " />
36
+ <actionGroup ref =" AdminOpenConfigAdminPageActionGroup " stepKey =" goToAdminSectionPage " />
37
37
<actionGroup ref =" AdminExpandSecurityTabActionGroup" stepKey =" openSecurityTab" />
38
38
<actionGroup ref =" AdminSetMaximumLoginFailuresToLockoutAccountActionGroup" stepKey =" setMaximumLoginFailures" />
39
- <actionGroup ref =" AdminSaveConfigActionGroup" stepKey =" saveCahges" />
39
+ <actionGroup ref =" AdminSaveConfigActionGroup" stepKey =" saveChanges" />
40
+
41
+ <!-- Log in to Admin Panel with incorrect password specified number of times-->
42
+ <actionGroup ref =" logout" stepKey =" logoutAsDefaultUser" />
43
+ <actionGroup ref =" LoginAsAdmin" stepKey =" loginAsNewUserFirstAttempt" >
44
+ <argument name =" adminUser" value =" adminUserIncorrectPassword" />
45
+ </actionGroup >
46
+ <actionGroup ref =" AssertMessageOnAdminLoginActionGroup" stepKey =" checkLoginErrorFirstAttempt" />
47
+ <actionGroup ref =" LoginAsAdmin" stepKey =" loginAsNewUserSecondAttempt" >
48
+ <argument name =" adminUser" value =" adminUserIncorrectPassword" />
49
+ </actionGroup >
50
+ <actionGroup ref =" AssertMessageOnAdminLoginActionGroup" stepKey =" checkLoginErrorSecondAttempt" />
51
+ <actionGroup ref =" LoginAsAdmin" stepKey =" loginAsNewUserThirdAttempt" >
52
+ <argument name =" adminUser" value =" adminUserIncorrectPassword" />
53
+ </actionGroup >
54
+ <actionGroup ref =" AssertMessageOnAdminLoginActionGroup" stepKey =" checkLoginErrorThirdAttempt" />
55
+
56
+ <!-- Log in to Admin Panel with correct password-->
57
+ <actionGroup ref =" LoginAsAdmin" stepKey =" loginAsNewUserFourthAttempt" >
58
+ <argument name =" adminUser" value =" adminUserCorrectPassword" />
59
+ </actionGroup >
60
+ <actionGroup ref =" AssertMessageOnAdminLoginActionGroup" stepKey =" checkLoginErrorFourthAttempt" />
61
+
62
+ <!-- Login as default admin user-->
63
+ <actionGroup ref =" LoginAsAdmin" stepKey =" loginAsDefaultAdminUser" />
64
+
65
+ <!-- Delete new User-->
66
+ <actionGroup ref =" AdminDeleteCustomUserActionGroup" stepKey =" deleteNewUser" >
67
+ <argument name =" user" value =" adminUserCorrectPassword" />
68
+ </actionGroup >
40
69
41
70
</test >
42
71
</tests >
0 commit comments