Skip to content

Commit d91e9de

Browse files
committed
MAGETWO-57909: Automate MAGETWO-49034 - Password protection for adding new user
- Adressing review comments.
1 parent 0f732dc commit d91e9de

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

dev/tests/functional/tests/app/Magento/Security/Test/TestCase/LockAdminUserWhenCreatingNewUserTest.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
*
2121
* Steps:
2222
* 1. Log in to backend as admin user.
23-
* 2. Navigate to System > User Roles.
24-
* 3. Start to create new User Role.
23+
* 2. Navigate to System > All Users.
24+
* 3. Click on Add New User.
2525
* 4. Fill in all data according to data set (password is incorrect).
2626
* 5. Perform action 4 specified number of times.
2727
* 6. "You have entered an invalid password for current user." appears after each attempt.
@@ -91,7 +91,7 @@ public function test(
9191
$attempts,
9292
User $customAdmin,
9393
User $user,
94-
$configData = null
94+
$configData
9595
) {
9696
$this->configData = $configData;
9797

@@ -110,7 +110,6 @@ public function test(
110110
$this->userIndexPage->getPageActions()->addNew();
111111
for ($i = 0; $i < $attempts; $i++) {
112112
$this->userEditPage->getUserForm()->fill($user);
113-
sleep(3);
114113
$this->userEditPage->getPageActions()->save();
115114
}
116115

0 commit comments

Comments
 (0)