Skip to content

Commit 09881af

Browse files
MTO-142: [Test] Captcha on front login
- Defects fixed.
1 parent 38b276b commit 09881af

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

dev/tests/functional/tests/app/Magento/Captcha/Test/Block/Form/LoginWithCaptcha.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ public function isVisibleCaptchaReloadButton()
5050
}
5151

5252
/**
53-
* Get captcha reload button element.
53+
* Click on reload captcha button.
5454
*
55-
* @return ElementInterface
55+
* @return void
5656
*/
57-
public function getCaptchaReloadButton()
57+
public function clickReloadCaptchaButton()
5858
{
59-
return $this->_rootElement->find($this->captchaReload, Locator::SELECTOR_CSS);
59+
$this->_rootElement->find($this->captchaReload, Locator::SELECTOR_CSS)->click();
6060
}
6161
}

dev/tests/functional/tests/app/Magento/Captcha/Test/TestCase/CaptchaOnAdminLoginTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class CaptchaOnAdminLoginTest extends Injectable
3939
/**
4040
* Assert Captcha.
4141
*
42-
* @var string
42+
* @var AssertCaptchaFieldOnBackend
4343
*/
4444
private $assertCaptcha;
4545

dev/tests/functional/tests/app/Magento/Captcha/Test/TestCase/CaptchaOnStoreFrontLoginTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class CaptchaOnStoreFrontLoginTest extends Injectable
3838
/**
3939
* Assert Captcha.
4040
*
41-
* @var string
41+
* @var AssertCaptchaFieldOnStorefront
4242
*/
4343
private $assertCaptcha;
4444

@@ -116,7 +116,7 @@ public function test(
116116

117117
$this->customerAccountLogin->open();
118118
$this->assertCaptcha->processAssert($this->customerAccountLogin);
119-
$this->customerAccountLogin->getLoginBlockWithCaptcha()->getCaptchaReloadButton()->click();
119+
$this->customerAccountLogin->getLoginBlockWithCaptcha()->clickReloadCaptchaButton();
120120
$this->customerAccountLogin->getLoginBlockWithCaptcha()->login($customer);
121121
}
122122

0 commit comments

Comments
 (0)