|
| 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="AdminClearPaymentsProActionGroup"> |
| 12 | + <annotations> |
| 13 | + <description>Admin goes to payments pro configuration and clears provided Sample PayPal credentials</description> |
| 14 | + </annotations> |
| 15 | + <arguments> |
| 16 | + <argument name="countryCode" type="string" defaultValue="us"/> |
| 17 | + </arguments> |
| 18 | + <amOnPage url="{{AdminConfigPaymentMethodsPage.url}}" stepKey="navigateToPaymentConfigurationPage"/> |
| 19 | + <waitForPageLoad stepKey="waitForConfigPageLoad"/> |
| 20 | + <waitForElementVisible selector="{{OtherPayPalPaymentsConfigSection.expandTab(countryCode)}}" stepKey="waitForOtherPayPalPaymentsSection"/> |
| 21 | + <conditionalClick selector="{{OtherPayPalPaymentsConfigSection.expandTab(countryCode)}}" dependentSelector="{{OtherPayPalPaymentsConfigSection.expandedTab(countryCode)}}" visible="false" stepKey="clickOtherPayPalPaymentsSection"/> |
| 22 | + <waitForElementClickable selector="{{PayPalPaymentsProConfigSection.configureBtn(countryCode)}}" stepKey="waitForPayPalPaymentsProConfigureBtn"/> |
| 23 | + <click selector ="{{PayPalPaymentsProConfigSection.configureBtn(countryCode)}}" stepKey="clickPayPalPaymentsProConfigureBtn"/> |
| 24 | + <waitForPageLoad stepKey="waitForPaymethodConfigPageLoad"/> |
| 25 | + <clearField selector="{{PayPalPaymentsProConfigSection.partner(countryCode)}}" stepKey="clearInputPartnerField"/> |
| 26 | + <clearField selector="{{PayPalPaymentsProConfigSection.vendor(countryCode)}}" stepKey="clearInputVendorField"/> |
| 27 | + <clearField selector="{{PayPalPaymentsProConfigSection.user(countryCode)}}" stepKey="clearInputUsereField"/> |
| 28 | + <clearField selector="{{PayPalPaymentsProConfigSection.password(countryCode)}}" stepKey="clearInputPasswordField"/> |
| 29 | + <selectOption selector="{{PayPalPaymentsProConfigSection.testMode(countryCode)}}" userInput="No" stepKey="disableTestMode"/> |
| 30 | + <assertElementContainsAttribute stepKey="seeEnablePaymentsProSolutionIsDisabled"> |
| 31 | + <expectedResult selector="{{PayPalPaymentsProConfigSection.enableSolution(countryCode)}}" attribute="disabled" type="string"></expectedResult> |
| 32 | + </assertElementContainsAttribute> |
| 33 | + <seeOptionIsSelected selector="{{PayPalPaymentsProConfigSection.enableSolution(countryCode)}}" userInput="No" stepKey="seeEnableThisSolutionIsSetAsNo"/> |
| 34 | + <assertElementContainsAttribute stepKey="seeEnablePaypalCreditIsDisabled"> |
| 35 | + <expectedResult selector="{{PayPalPaymentsProConfigSection.enablePaypalCredit(countryCode)}}" attribute="disabled" type="string"></expectedResult> |
| 36 | + </assertElementContainsAttribute> |
| 37 | + <seeOptionIsSelected selector="{{PayPalPaymentsProConfigSection.enablePaypalCredit(countryCode)}}" userInput="No" stepKey="seePaypalCreditIsSetAsNo" after="seeEnablePaypalCreditIsDisabled"/> |
| 38 | + <assertElementContainsAttribute stepKey="seeEnableVaultIsDisabled"> |
| 39 | + <expectedResult selector="{{PayPalPaymentsProConfigSection.enableVault(countryCode)}}" attribute="disabled" type="string"></expectedResult> |
| 40 | + </assertElementContainsAttribute> |
| 41 | + <seeOptionIsSelected selector="{{PayPalPaymentsProConfigSection.enableVault(countryCode)}}" userInput="No" stepKey="seeValultIsSetAsNo" after="seeEnableVaultIsDisabled"/> |
| 42 | + </actionGroup> |
| 43 | +</actionGroups> |
0 commit comments