|
| 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="AdminCheckingPaymentMethodRadioButtonPresentAfterReloadOrderPageTest"> |
| 11 | + <annotations> |
| 12 | + <features value="Sales"/> |
| 13 | + <stories value="Create order in Admin"/> |
| 14 | + <title value="Checking payment method radio button is presented after reloading the order page"/> |
| 15 | + <description value="Checking payment method radio button is presented after reloading the order page"/> |
| 16 | + <severity value="AVERAGE"/> |
| 17 | + <testCaseId value="MC-40878"/> |
| 18 | + <useCaseId value="MC-40013"/> |
| 19 | + <group value="sales"/> |
| 20 | + </annotations> |
| 21 | + <before> |
| 22 | + <!-- Enable Check/Money order payment method --> |
| 23 | + <magentoCLI command="config:set {{EnablePaymentCheckMOConfigData.path}} {{EnablePaymentCheckMOConfigData.value}}" stepKey="enableCheckMoneyOrderPayment"/> |
| 24 | + <!-- Enable Bank Transfer Payment method --> |
| 25 | + <magentoCLI command="config:set {{EnablePaymentBankTransferConfigData.path}} {{EnablePaymentBankTransferConfigData.value}}" stepKey="enableBankTransferPayment"/> |
| 26 | + <!-- Create simple product --> |
| 27 | + <createData entity="SimpleProduct2" stepKey="createProduct"/> |
| 28 | + <!-- Create customer --> |
| 29 | + <createData entity="Simple_US_Customer" stepKey="createCustomer"/> |
| 30 | + <!-- Login to Admin page --> |
| 31 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 32 | + </before> |
| 33 | + <after> |
| 34 | + <!-- Disable Bank Transfer Payment method --> |
| 35 | + <magentoCLI command="config:set {{DisablePaymentBankTransferConfigData.path}} {{DisablePaymentBankTransferConfigData.value}}" stepKey="disableBankTransferPayment"/> |
| 36 | + <!-- Delete entities --> |
| 37 | + <deleteData createDataKey="createProduct" stepKey="deleteProduct"/> |
| 38 | + <deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/> |
| 39 | + <!-- Logout from Admin page --> |
| 40 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logoutFromAdmin"/> |
| 41 | + </after> |
| 42 | + |
| 43 | + <!-- Create new order --> |
| 44 | + <actionGroup ref="NavigateToNewOrderPageExistingCustomerActionGroup" stepKey="navigateToNewOrderWithExistingCustomer"> |
| 45 | + <argument name="customer" value="$createCustomer$"/> |
| 46 | + </actionGroup> |
| 47 | + |
| 48 | + <!-- Add Simple product to order --> |
| 49 | + <actionGroup ref="AddSimpleProductToOrderActionGroup" stepKey="addSimpleProductToTheOrder"> |
| 50 | + <argument name="product" value="$createProduct$"/> |
| 51 | + </actionGroup> |
| 52 | + |
| 53 | + <!-- Assert label with radio button presents on the page --> |
| 54 | + <actionGroup ref="AssertAdminPaymentMethodRadioButtonExistsOnCreateOrderPageActionGroup" stepKey="assertPaymentRadioButtonIsPresent"/> |
| 55 | + |
| 56 | + <actionGroup ref="ReloadPageActionGroup" stepKey="reloadPage"/> |
| 57 | + |
| 58 | + <!-- Assert label with radio button presents after reload the page --> |
| 59 | + <actionGroup ref="AssertAdminPaymentMethodRadioButtonExistsOnCreateOrderPageActionGroup" stepKey="assertPaymentRadioButtonIsPresentAfterReload"/> |
| 60 | + </test> |
| 61 | +</tests> |
0 commit comments