File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 11
11
use Magento \Customer \CustomerData \SectionSourceInterface ;
12
12
13
13
/**
14
- * Cart source
14
+ * Captcha section
15
15
*/
16
16
class Captcha extends \Magento \Framework \DataObject implements SectionSourceInterface
17
17
{
Original file line number Diff line number Diff line change @@ -486,7 +486,7 @@ private function getTargetForms()
486
486
/**
487
487
* Get captcha word
488
488
*
489
- * @return string
489
+ * @return string|null
490
490
*/
491
491
public function getWord ()
492
492
{
@@ -497,7 +497,7 @@ public function getWord()
497
497
/**
498
498
* Get captcha words
499
499
*
500
- * @return string
500
+ * @return string|null
501
501
*/
502
502
private function getWords ()
503
503
{
Original file line number Diff line number Diff line change 84
84
</createData >
85
85
</before >
86
86
<after >
87
- <deleteData createDataKey =" createCategory" stepKey =" deleteCategory" />
88
- <deleteData createDataKey =" createSimpleProduct" stepKey =" deleteSimpleProduct1" />
89
87
<magentoCLI command =" config:set checkout/options/guest_checkout 1" stepKey =" enableGuestCheckout" />
90
88
<magentoCLI command =" config:set customer/captcha/failed_attempts_login 3" stepKey =" increaseLoginAttempt" />
89
+ <deleteData createDataKey =" createCategory" stepKey =" deleteCategory" />
90
+ <deleteData createDataKey =" createSimpleProduct" stepKey =" deleteSimpleProduct1" />
91
91
</after >
92
92
<amOnPage url =" {{StorefrontProductPage.url($$createSimpleProduct.sku$$)}}" stepKey =" openProductPage" />
93
93
<waitForPageLoad stepKey =" waitForPageLoad" />
94
94
<click selector =" {{StorefrontProductActionSection.addToCart}}" stepKey =" addToCart" />
95
95
<waitForText userInput =" You added $$createSimpleProduct.name$$ to your shopping cart." stepKey =" waitForText" />
96
96
<click selector =" {{StorefrontMinicartSection.showCart}}" stepKey =" clickCart" />
97
97
<click selector =" {{StorefrontMinicartSection.goToCheckout}}" stepKey =" goToCheckout" />
98
+ <waitForElementVisible selector =" {{StorefrontCustomerSignInPopupFormSection.email}}" stepKey =" waitEmailFieldVisible" />
98
99
<fillField selector =" {{StorefrontCustomerSignInPopupFormSection.email}}" userInput =" {{Simple_US_Customer.email}}" stepKey =" fillCustomerEmail" />
99
100
<fillField selector =" {{StorefrontCustomerSignInPopupFormSection.password}}" userInput =" incorrectPassword" stepKey =" fillIncorrectCustomerPassword" />
100
101
<click selector =" {{StorefrontCustomerSignInPopupFormSection.signIn}}" stepKey =" clickSignIn" />
You can’t perform that action at this time.
0 commit comments