File tree Expand file tree Collapse file tree 3 files changed +56
-0
lines changed
app/code/Magento/Paypal/Test/Mftf Expand file tree Collapse file tree 3 files changed +56
-0
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments