File tree Expand file tree Collapse file tree 2 files changed +59
-0
lines changed
app/code/Magento/Sales/Test/Mftf/ActionGroup Expand file tree Collapse file tree 2 files changed +59
-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 =" AdminBraintreeEnableActionGroup" >
12+ <annotations >
13+ <description >Goes to the 'Configuration' page for 'Payment Methods'. Fills in the provided Sample Braintree credentials and other details. Clicks on Save.</description >
14+ </annotations >
15+ <arguments >
16+ <argument name =" credentials" defaultValue =" SampleBraintreeConfig" />
17+ <argument name =" countryCode" type =" string" defaultValue =" us" />
18+ </arguments >
19+ <amOnPage url =" {{AdminConfigPaymentMethodsPage.url}}" stepKey =" navigateToPaymentConfigurationPage" />
20+ <waitForPageLoad stepKey =" waitForPageLoad1" />
21+ <click selector =" {{BraintreeConfigSection.configureBtn(countryCode)}}" stepKey =" clickBraintreeConfigureBtn" />
22+ <selectOption selector =" {{BraintreeConfigSection.environment(countryCode)}}" userInput =" Sandbox" stepKey =" inputTypeOfEnvironment" />
23+ <selectOption selector =" {{BraintreeConfigSection.paymentAction(countryCode)}}" userInput =" Authorize" stepKey =" inputPaymentAction" />
24+ <fillField selector =" {{BraintreeConfigSection.merchantID(countryCode)}}" userInput =" {{credentials.braintree_merchant_id}}" stepKey =" inputMerchantId" />
25+ <fillField selector =" {{BraintreeConfigSection.publicKey(countryCode)}}" userInput =" {{credentials.braintree_public_key}}" stepKey =" inputPublicKey" />
26+ <fillField selector =" {{BraintreeConfigSection.privateKey(countryCode)}}" userInput =" {{credentials.braintree_private_key}}" stepKey =" inputPrivateKey" />
27+ <selectOption selector =" {{BraintreeConfigSection.enableCard(countryCode)}}" userInput =" Yes" stepKey =" enableCardPayment" />
28+ <click selector =" {{AdminConfigSection.saveButton}}" stepKey =" saveConfig" />
29+ <waitForPageLoad stepKey =" waitForPageLoad2" />
30+ </actionGroup >
31+ </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+ <actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
11+ <actionGroup name =" FillBraintreeCreditCardActionGroup" >
12+ <annotations >
13+ <description >Fills in the provided Braintree Credit Card details.</description >
14+ </annotations >
15+ <arguments >
16+ <argument name =" creditCardDetails" defaultValue =" InvalidCreditCard" />
17+ </arguments >
18+ <switchToIFrame selector =" {{BraintreeCreditCardSection.ccNumberIframe}}" stepKey =" switchToCcNumberIframe" />
19+ <fillField selector =" {{BraintreeCreditCardSection.creditCardNumber}}" userInput =" {{creditCardDetails.cardNumber}}" stepKey =" inputCreditcardNumber" />
20+ <switchToIFrame stepKey =" switchBack1" />
21+ <switchToIFrame selector =" {{BraintreeCreditCardSection.ccExpiryIframe}}" stepKey =" switchToExpiryIframe" />
22+ <fillField selector =" {{BraintreeCreditCardSection.expirationDate}}" userInput =" {{creditCardDetails.expiry}}" stepKey =" inputExpiryDate" />
23+ <switchToIFrame stepKey =" switchBack2" />
24+ <switchToIFrame selector =" {{BraintreeCreditCardSection.ccCvvIframe}}" stepKey =" switchToCvvIframe" />
25+ <fillField selector =" {{BraintreeCreditCardSection.cvv}}" userInput =" {{creditCardDetails.cvv}}" stepKey =" inputCvv" />
26+ <switchToIFrame stepKey =" switchBack3" />
27+ </actionGroup >
28+ </actionGroups >
You can’t perform that action at this time.
0 commit comments