Skip to content

Commit 0fa8549

Browse files
committed
Code refactoring
1 parent 260ec75 commit 0fa8549

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

app/code/Magento/User/Test/Mftf/Test/AdminLockAdminUserEntityTest.xml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@
3535
<!--Configure 'Maximum Login Failures to Lockout Account'-->
3636
<actionGroup ref="AdminOpenConfigAdminPageActionGroup" stepKey="goToConfigAdminSectionPage"/>
3737
<actionGroup ref="AdminExpandSecurityTabActionGroup" stepKey="openSecurityTab"/>
38-
<actionGroup ref="AdminSetMaximumLoginFailuresToLockoutAccountActionGroup" stepKey="setMaximumLoginFailures"/>
38+
<actionGroup ref="AdminSetMaximumLoginFailuresToLockoutAccountActionGroup" stepKey="setMaximumLoginFailures">
39+
<argument name="qty" value="2"/>
40+
</actionGroup>
3941
<actionGroup ref="AdminSaveConfigActionGroup" stepKey="saveChanges"/>
4042

4143
<!-- Log in to Admin Panel with incorrect password specified number of times-->
@@ -48,16 +50,12 @@
4850
<argument name="adminUser" value="adminUserIncorrectPassword"/>
4951
</actionGroup>
5052
<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"/>
5553

5654
<!-- Log in to Admin Panel with correct password-->
57-
<actionGroup ref="LoginAsAdmin" stepKey="loginAsNewUserFourthAttempt">
55+
<actionGroup ref="LoginAsAdmin" stepKey="loginAsNewUserThirdAttempt">
5856
<argument name="adminUser" value="adminUserCorrectPassword"/>
5957
</actionGroup>
60-
<actionGroup ref="AssertMessageOnAdminLoginActionGroup" stepKey="checkLoginErrorFourthAttempt"/>
58+
<actionGroup ref="AssertMessageOnAdminLoginActionGroup" stepKey="checkLoginErrorThirdAttempt"/>
6159

6260
<!--Login as default admin user-->
6361
<actionGroup ref="LoginAsAdmin" stepKey="loginAsDefaultAdminUser"/>

0 commit comments

Comments
 (0)