9 use Magento\User\Test\Page\Adminhtml\UserEdit;
10 use Magento\User\Test\Page\Adminhtml\UserIndex;
13 use Magento\Mtf\TestCase\Injectable;
73 $this->userIndexPage = $userIndex;
74 $this->userEditPage = $userEdit;
96 $this->objectManager->create(
97 \
Magento\Config\Test\TestStep\SetupConfigurationStep::class,
98 [
'configData' => $this->configData]
100 $customAdmin->persist();
103 $this->adminAuthLogin->open();
104 $this->adminAuthLogin->getLoginBlock()->fill($customAdmin);
105 $this->adminAuthLogin->getLoginBlock()->submit();
107 $filter = [
'username' => $customAdmin->getUsername()];
108 $this->userIndexPage->open();
109 $this->userIndexPage->getUserGrid()->searchAndOpen($filter);
111 for (
$i = 0;
$i < $attempts;
$i++) {
112 $this->userEditPage->getUserForm()->fill(
$user);
113 $this->userEditPage->getPageActions()->save();
116 $this->adminAuthLogin->open();
117 $this->adminAuthLogin->getLoginBlock()->fill($customAdmin);
118 $this->adminAuthLogin->getLoginBlock()->submit();
128 $this->objectManager->create(
129 \
Magento\Config\Test\TestStep\SetupConfigurationStep::class,
130 [
'configData' => $this->configData,
'rollback' =>
true]
test( $attempts, User $customAdmin, User $user, $configData)
__inject(UserIndex $userIndex, UserEdit $userEdit, AdminAuthLogin $adminAuthLogin)