File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
dev/tests/functional/tests/app/Magento/Captcha/Test Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -50,12 +50,12 @@ public function isVisibleCaptchaReloadButton()
50
50
}
51
51
52
52
/**
53
- * Get captcha reload button element .
53
+ * Click on reload captcha button .
54
54
*
55
- * @return ElementInterface
55
+ * @return void
56
56
*/
57
- public function getCaptchaReloadButton ()
57
+ public function clickReloadCaptchaButton ()
58
58
{
59
- return $ this ->_rootElement ->find ($ this ->captchaReload , Locator::SELECTOR_CSS );
59
+ $ this ->_rootElement ->find ($ this ->captchaReload , Locator::SELECTOR_CSS )-> click ( );
60
60
}
61
61
}
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ class CaptchaOnAdminLoginTest extends Injectable
39
39
/**
40
40
* Assert Captcha.
41
41
*
42
- * @var string
42
+ * @var AssertCaptchaFieldOnBackend
43
43
*/
44
44
private $ assertCaptcha ;
45
45
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ class CaptchaOnStoreFrontLoginTest extends Injectable
38
38
/**
39
39
* Assert Captcha.
40
40
*
41
- * @var string
41
+ * @var AssertCaptchaFieldOnStorefront
42
42
*/
43
43
private $ assertCaptcha ;
44
44
@@ -116,7 +116,7 @@ public function test(
116
116
117
117
$ this ->customerAccountLogin ->open ();
118
118
$ this ->assertCaptcha ->processAssert ($ this ->customerAccountLogin );
119
- $ this ->customerAccountLogin ->getLoginBlockWithCaptcha ()->getCaptchaReloadButton ()-> click ();
119
+ $ this ->customerAccountLogin ->getLoginBlockWithCaptcha ()->clickReloadCaptchaButton ();
120
120
$ this ->customerAccountLogin ->getLoginBlockWithCaptcha ()->login ($ customer );
121
121
}
122
122
You can’t perform that action at this time.
0 commit comments