|
| 1 | +<!-- |
| 2 | + /** |
| 3 | + * Copyright © Magento, Inc. All rights reserved. |
| 4 | + * See COPYING.txt for license details. |
| 5 | + */ |
| 6 | +--> |
| 7 | +<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 8 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd"> |
| 9 | + <actionGroup name="AdminClearPayflowLinkExistingDataActionGroup"> |
| 10 | + <annotations> |
| 11 | + <description>Admin goes to payflow link configuration and clears provided Sample PayPal credentials</description> |
| 12 | + </annotations> |
| 13 | + <arguments> |
| 14 | + <argument name="countryCode" type="string" defaultValue="us"/> |
| 15 | + </arguments> |
| 16 | + <amOnPage url="{{AdminConfigPaymentMethodsPage.url}}" stepKey="navigateToPaymentConfigurationPage"/> |
| 17 | + <waitForPageLoad stepKey="waitForConfigPageLoad"/> |
| 18 | + <waitForElementVisible selector="{{OtherPayPalPaymentsConfigSection.expandTab(countryCode)}}" stepKey="waitForOtherPayPalPaymentsSection"/> |
| 19 | + <conditionalClick selector="{{OtherPayPalPaymentsConfigSection.expandTab(countryCode)}}" dependentSelector="{{OtherPayPalPaymentsConfigSection.expandedTab(countryCode)}}" visible="false" stepKey="clickOtherPayPalPaymentsSection"/> |
| 20 | + <conditionalClick selector ="{{AdminPayPalPayFlowLinkConfigSection.paymentGateway(countryCode)}}" dependentSelector="{{AdminPayPalPayFlowLinkConfigSection.paymentGateway(countryCode)}}" visible="false" stepKey="clickPayPalPayflowPaymentGatewayBtn"/> |
| 21 | + <waitForElementClickable selector="{{AdminPayPalPayFlowLinkConfigSection.configureBtn(countryCode)}}" stepKey="waitForPayPalPayflowLinkConfigureBtn"/> |
| 22 | + <click selector ="{{AdminPayPalPayFlowLinkConfigSection.configureBtn(countryCode)}}" stepKey="clickPayPalPayflowLinkoConfigureBtn"/> |
| 23 | + <waitForPageLoad stepKey="waitForPaymethodConfigPageLoad"/> |
| 24 | + <clearField selector="{{AdminPayPalPayFlowLinkConfigSection.partner(countryCode)}}" stepKey="clearInputPartnerField"/> |
| 25 | + <clearField selector="{{AdminPayPalPayFlowLinkConfigSection.vendor(countryCode)}}" stepKey="clearInputVendorField"/> |
| 26 | + <clearField selector="{{AdminPayPalPayFlowLinkConfigSection.user(countryCode)}}" stepKey="clearInputUsereField"/> |
| 27 | + <clearField selector="{{AdminPayPalPayFlowLinkConfigSection.password(countryCode)}}" stepKey="clearInputPasswordField"/> |
| 28 | + <selectOption selector="{{AdminPayPalPayFlowLinkConfigSection.testMode(countryCode)}}" userInput="No" stepKey="disableTestMode"/> |
| 29 | + <seeOptionIsSelected selector="{{AdminPayPalPayFlowLinkConfigSection.enableSolution(countryCode)}}" userInput="No" stepKey="seeEnableThisSolutionIsSetNo" after="disableTestMode"/> |
| 30 | + <assertElementContainsAttribute stepKey="seeEnableThisSolutionIsDisabled"> |
| 31 | + <expectedResult selector="{{AdminPayPalPayFlowLinkConfigSection.enableSolution(countryCode)}}" attribute="disabled" type="string"></expectedResult> |
| 32 | + </assertElementContainsAttribute> |
| 33 | + <assertElementContainsAttribute stepKey="seeEnablePaypalCreditIsDisabled"> |
| 34 | + <expectedResult selector="{{AdminPayPalPayFlowLinkConfigSection.enablePaypalCredit(countryCode)}}" attribute="disabled" type="string"></expectedResult> |
| 35 | + </assertElementContainsAttribute> |
| 36 | + <seeOptionIsSelected selector="{{AdminPayPalPayFlowLinkConfigSection.enablePaypalCredit(countryCode)}}" userInput="No" stepKey="seePaypalCreditIsSetNo"/> |
| 37 | + <assertElementContainsAttribute stepKey="seeEnableExpressCheckoutIsDisabled"> |
| 38 | + <expectedResult selector="{{AdminPayPalPayFlowLinkConfigSection.enableExpressCheckout(countryCode)}}" attribute="disabled" type="string"></expectedResult> |
| 39 | + </assertElementContainsAttribute> |
| 40 | + <seeOptionIsSelected selector="{{AdminPayPalPayFlowLinkConfigSection.enableExpressCheckout(countryCode)}}" userInput="No" stepKey="seeExpressCheckoutIsSetNo"/> |
| 41 | + </actionGroup> |
| 42 | +</actionGroups> |
0 commit comments