|
| 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 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 9 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 10 | + <test name="AdminConfigForPaypalPaylaterTest"> |
| 11 | + <annotations> |
| 12 | + <features value="PayPal"/> |
| 13 | + <stories value="Payment methods"/> |
| 14 | + <title value="Default configuration for Paypal pay later"/> |
| 15 | + <description value="Paypal Pay Later Message should display on Admin Cart Page configuration"/> |
| 16 | + <severity value="CRITICAL"/> |
| 17 | + <testCaseId value="AC-5644"/> |
| 18 | + <group value="pr_exclude"/> |
| 19 | + <group value="3rd_party_integration"/> |
| 20 | + </annotations> |
| 21 | + <before> |
| 22 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 23 | + <actionGroup ref="AdminPayPalExpressCheckoutEnableActionGroup" stepKey="ConfigPayPalExpress"> |
| 24 | + <argument name="credentials" value="SamplePaypalExpressConfig2"/> |
| 25 | + </actionGroup> |
| 26 | + </before> |
| 27 | + <after> |
| 28 | + <magentoCLI command="config:set payment/paypal_express/active 0" stepKey="disablePayPalExpress"/> |
| 29 | + <magentoCLI command="cache:flush" stepKey="cleanCache"/> |
| 30 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="amOnLogoutPage"/> |
| 31 | + </after> |
| 32 | + <actionGroup ref="AdminConfigurePaypalPaylaterEnableActionGroup" stepKey="enablePaypalPaylaterSolution"/> |
| 33 | + <!--Check default values selected in dropdown --> |
| 34 | + <actionGroup ref="AssertAdminConfigForDefaultValuesInPaylaterCartPageActionGroup" stepKey="checkValuesForAdminCartConfiguration"/> |
| 35 | + <!--Click on Save configure Button --> |
| 36 | + <actionGroup ref="AdminSaveConfigActionGroup" stepKey="saveAdminConfiguration"/> |
| 37 | + </test> |
| 38 | +</tests> |
0 commit comments