9 use Magento\Backend\Test\Page\Adminhtml\SystemConfigEdit;
10 use Magento\Mtf\TestCase\Injectable;
54 private $systemConfigEditPage;
65 SystemConfigEdit $systemConfigEditPage
68 $this->systemConfigEditPage = $systemConfigEditPage;
86 $customAdmin->persist();
89 $this->objectManager->create(
90 \
Magento\Config\Test\TestStep\SetupConfigurationStep::class,
91 [
'configData' => $this->configData]
94 $this->systemConfigEditPage->open();
95 $this->systemConfigEditPage->getForm()
96 ->getGroup(
'admin',
'captcha')->setValue(
'admin',
'captcha',
'enable',
'No');
97 $this->systemConfigEditPage->getPageActions()->save();
99 for (
$i = 0;
$i < $attempts;
$i++) {
100 $this->userAccountForgotPassword->open();
101 $this->userAccountForgotPassword->getForgotPasswordForm()->fill($customAdmin);
102 $this->userAccountForgotPassword->getForgotPasswordForm()->submit();
__inject(UserAccountForgotPassword $userAccountForgotPassword, SystemConfigEdit $systemConfigEditPage)
$userAccountForgotPassword
test(User $customAdmin, $attempts, $configData=null)