Skip to content

Commit e188165

Browse files
committed
MC-33884: De-couple Braintree payment method integration from core in 2.4.0
- Added back missing paypal test files
1 parent fe83b90 commit e188165

File tree

3 files changed

+56
-0
lines changed

3 files changed

+56
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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="StorefrontPaypalFillCardDataActionGroup">
12+
<annotations>
13+
<description>Fills Card Data with Paypal using the provided Data Entity.</description>
14+
</annotations>
15+
<arguments>
16+
<argument name="cardData" defaultValue="PaymentAndShippingInfo"/>
17+
</arguments>
18+
19+
<fillField selector="{{StorefrontPaypalCheckoutSection.cardNumber}}" userInput="{{cardData.cardNumber}}" stepKey="setCartNumber"/>
20+
<fillField selector="{{StorefrontPaypalCheckoutSection.verificationNumber}}" userInput="{{cardData.cvv}}" stepKey="setVerificationNumber"/>
21+
<selectOption selector="{{StorefrontPaypalCheckoutSection.expirationMonth}}" userInput="{{cardData.month}}" stepKey="setMonth"/>
22+
<selectOption selector="{{StorefrontPaypalCheckoutSection.expirationYear}}" userInput="{{cardData.year}}" stepKey="setYear"/>
23+
</actionGroup>
24+
</actionGroups>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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+
<pages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/PageObject.xsd">
11+
<page name="CheckoutPage" url="/checkout" area="storefront" module="Magento_Paypal">
12+
<section name="StorefrontPaypalCheckoutSection"/>
13+
</page>
14+
</pages>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
11+
<section name="StorefrontPaypalCheckoutSection">
12+
<element name="creditCard" type="select" selector="#co-payment-form .payment-method #payflowpro"/>
13+
<element name="cardNumber" type="input" selector="#payflowpro_cc_number"/>
14+
<element name="expirationMonth" type="select" selector="#payflowpro_cc_type_exp_div .select-month"/>
15+
<element name="expirationYear" type="select" selector="#payflowpro_cc_type_exp_div .select-year"/>
16+
<element name="verificationNumber" type="input" selector="#payflowpro_cc_cid"/>
17+
</section>
18+
</sections>

0 commit comments

Comments
 (0)