Skip to content

Commit e144355

Browse files
committed
B2B-2127: [AWS S3] Test Failed to fill captcha field
- Improving waits
1 parent be390ff commit e144355

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

app/code/Magento/Captcha/Test/Mftf/ActionGroup/StorefrontCheckoutPaymentsWithCaptchaActionGroup.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<argument name="captcha" type="string"/>
1414
</arguments>
1515

16-
<fillField selector="{{StorefrontCaptchaOnOnepageCheckoutPyamentSection.captchaField}}" userInput="{{captcha}}" stepKey="fillCaptchaField" />
17-
<waitForPageLoad stepKey="waitForPageLoad"/>
16+
<waitForElementVisible selector="{{StorefrontCaptchaOnOnepageCheckoutPyamentSection.captchaField}}" stepKey="waitForCaptchaField"/>
17+
<fillField selector="{{StorefrontCaptchaOnOnepageCheckoutPyamentSection.captchaField}}" userInput="{{captcha}}" stepKey="fillCaptchaField"/>
1818
</actionGroup>
1919
</actionGroups>

app/code/Magento/Paypal/Test/Mftf/ActionGroup/AddProductToCheckoutPageActionGroup.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,6 @@
3131
<click selector="{{CheckoutShippingMethodsSection.next}}" stepKey="clickNext"/>
3232
<waitForElement selector="{{CheckoutPaymentSection.paymentSectionTitle}}" stepKey="waitForPlaceOrderButton"/>
3333
<click selector="{{CheckoutPaymentSection.PayPalPaymentRadio}}" stepKey="clickPayPalCheckbox"/>
34+
<waitForPageLoad stepKey="waitForPaymentLoad"/>
3435
</actionGroup>
3536
</actionGroups>

app/code/Magento/Paypal/Test/Mftf/ActionGroup/StorefrontPaypalFillCardDataActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
<argument name="cardData" defaultValue="PaymentAndShippingInfo"/>
1717
</arguments>
1818

19+
<waitForElementVisible selector="{{StorefrontPaypalCheckoutSection.cardNumber}}" stepKey="waitForCardNumber"/>
1920
<fillField selector="{{StorefrontPaypalCheckoutSection.cardNumber}}" userInput="{{cardData.cardNumber}}" stepKey="setCartNumber"/>
2021
<fillField selector="{{StorefrontPaypalCheckoutSection.verificationNumber}}" userInput="{{cardData.cvv}}" stepKey="setVerificationNumber"/>
2122
<selectOption selector="{{StorefrontPaypalCheckoutSection.expirationMonth}}" userInput="{{cardData.month}}" stepKey="setMonth"/>
2223
<selectOption selector="{{StorefrontPaypalCheckoutSection.expirationYear}}" userInput="{{cardData.year}}" stepKey="setYear"/>
23-
<waitForPageLoad stepKey="waitForPageLoad"/>
2424
</actionGroup>
2525
</actionGroups>

0 commit comments

Comments
 (0)