Skip to content

Commit c9a4714

Browse files
committed
MC-41572: Invalid Captcha when using Paypal PayflowPro
1 parent 9e88f23 commit c9a4714

File tree

3 files changed

+21
-4
lines changed

3 files changed

+21
-4
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
</annotations>
1515
<arguments>
1616
<argument name="Category"/>
17-
<argument name="PayPalPaymentMethod" type="string" defaultValue="{{CheckoutPaymentSection.PayPalPaymentRadio}}"/>
1817
</arguments>
1918

2019
<amOnPage url="{{StorefrontCategoryPage.url(Category.name)}}" stepKey="onCategoryPage"/>
@@ -31,6 +30,6 @@
3130
<waitForElement selector="{{CheckoutShippingMethodsSection.next}}" time="30" stepKey="waitForNextButton"/>
3231
<click selector="{{CheckoutShippingMethodsSection.next}}" stepKey="clickNext"/>
3332
<waitForElement selector="{{CheckoutPaymentSection.paymentSectionTitle}}" stepKey="waitForPlaceOrderButton"/>
34-
<click selector="{{PayPalPaymentMethod}}" stepKey="clickPayPalCheckbox"/>
33+
<click selector="{{CheckoutPaymentSection.PayPalPaymentRadio}}" stepKey="clickPayPalCheckbox"/>
3534
</actionGroup>
3635
</actionGroups>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="AddProductToCheckoutPageWithPayPalPayflowProActionGroup" extends="AddProductToCheckoutPageActionGroup">
12+
<annotations>
13+
<description>Extends AddProductToCheckoutPageActionGroup to choose PayPal PayflowPro method</description>
14+
</annotations>
15+
<arguments>
16+
</arguments>
17+
<click selector="{{StorefrontPaypalCheckoutSection.creditCard}}" stepKey="clickPayPalCheckbox"/>
18+
</actionGroup>
19+
</actionGroups>

app/code/Magento/PaypalCaptcha/Test/Mftf/Test/StorefrontPaymentsCaptchaWithPayflowProTest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,8 @@
7070
</actionGroup>
7171

7272
<!-- Add product to cart and proceed to checkout payments method step -->
73-
<actionGroup ref="AddProductToCheckoutPageActionGroup" stepKey="goToCheckoutPaypalPayflowPro">
73+
<actionGroup ref="AddProductToCheckoutPageWithPayPalPayflowProActionGroup" stepKey="goToCheckoutPaypalPayflowPro">
7474
<argument name="Category" value="$createCategory$"/>
75-
<argument name="PayPalPaymentMethod" value="{{StorefrontPaypalCheckoutSection.creditCard}}"/>
7675
</actionGroup>
7776

7877
<!-- Fill credit card form with card number, expiration and CVV -->

0 commit comments

Comments
 (0)