|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + /** |
| 4 | + * Copyright 2024 Adobe |
| 5 | + * All Rights Reserved. |
| 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="AdminPaymentBankTransferHavingMultipleStoresTest"> |
| 11 | + <annotations> |
| 12 | + <features value="Payments"/> |
| 13 | + <stories value="Bank Transfer Payment in Admin"/> |
| 14 | + <title value="Checking Bank Transfer Payment store label is being displayed on order/invoice/shipping/creditmemo details"/> |
| 15 | + <description value="Checking Bank Transfer Payment store label is being displayed on order/invoice/shipping/creditmemo details"/> |
| 16 | + <severity value="AVERAGE"/> |
| 17 | + <testCaseId value="AC-5671"/> |
| 18 | + <group value="Payments"/> |
| 19 | + </annotations> |
| 20 | + <before> |
| 21 | + <magentoCLI command="config:set {{EnablePaymentBankTransferConfigData.path}} {{EnablePaymentBankTransferConfigData.value}}" stepKey="enableBankTransferPayment"/> |
| 22 | + <createData entity="defaultSimpleProduct" stepKey="createProduct"/> |
| 23 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 24 | + <actionGroup ref="CreateCustomStoreActionGroup" stepKey="createCustomStore"> |
| 25 | + <argument name="website" value="Main Website"/> |
| 26 | + <argument name="store" value="{{customStoreGroup.name}}"/> |
| 27 | + <argument name="rootCategory" value="Default Category"/> |
| 28 | + </actionGroup> |
| 29 | + <actionGroup ref="AdminCreateStoreViewActionGroup" stepKey="createCustomStoreView"> |
| 30 | + <argument name="StoreGroup" value="customStoreGroup"/> |
| 31 | + <argument name="customStore" value="customStoreEN"/> |
| 32 | + </actionGroup> |
| 33 | + <actionGroup ref="AdminChangeWebsiteDefaultStoreActionGroup" stepKey="changeDefaultStoreToCustomStore"> |
| 34 | + <argument name="website" value="Main Website"/> |
| 35 | + <argument name="storeGroupName" value="{{customStoreGroup.name}}"/> |
| 36 | + <argument name="defaultStoreName" value="{{customStoreGroup.name}}"/> |
| 37 | + </actionGroup> |
| 38 | + </before> |
| 39 | + <after> |
| 40 | + <magentoCLI command="config:set {{DisablePaymentBankTransferConfigData.path}} {{DisablePaymentBankTransferConfigData.value}}" stepKey="disableBankTransferPayment"/> |
| 41 | + <deleteData stepKey="deleteProduct" createDataKey="createProduct"/> |
| 42 | + <actionGroup ref="DeleteCustomStoreActionGroup" stepKey="deleteCustomStore"> |
| 43 | + <argument name="storeGroupName" value="customStoreGroup.name"/> |
| 44 | + </actionGroup> |
| 45 | + <actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex"> |
| 46 | + <argument name="indices" value=""/> |
| 47 | + </actionGroup> |
| 48 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> |
| 49 | + </after> |
| 50 | + <actionGroup ref="AdminNavigateToConfigurationPaymentMethodSectionActionGroup" stepKey="navigateToPaymentConfigurationPage"/> |
| 51 | + <actionGroup ref="AdminSwitchSecondStoreViewActionGroup" stepKey="AdminSwitchSecondStoreView"> |
| 52 | + <argument name="secondStoreView" value="customStoreEN"/> |
| 53 | + </actionGroup> |
| 54 | + <conditionalClick selector="{{CatalogSection.expandedTab}}" dependentSelector="{{CatalogSection.productsPerPageOnGridBankTransferPaymentDefaultValueUseConfigCheckbox}}" visible="false" stepKey="expandOtherPaypalConfigButton"/> |
| 55 | + <uncheckOption selector="{{CatalogSection.productsPerPageOnGridBankTransferPaymentDefaultValueUseConfigCheckbox}}" stepKey="uncheckUseSystemValue"/> |
| 56 | + <waitForElementVisible selector="{{CatalogSection.productsPerPageOnGridAllowedBankTransferPaymentValues}}" stepKey="waitForContentHeading"/> |
| 57 | + <fillField selector="{{CatalogSection.productsPerPageOnGridAllowedBankTransferPaymentValues}}" userInput="Bank Transfer Payment(Second)" stepKey="fillProductQuantity"/> |
| 58 | + <actionGroup ref="AdminSavePaymentConfigActionGroup" stepKey="clickSaveConfigBtn"/> |
| 59 | + <actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanInvalidatedCaches"> |
| 60 | + <argument name="tags" value="config full_page"/> |
| 61 | + </actionGroup> |
| 62 | + <actionGroup ref="StorefrontOpenProductEntityPageActionGroup" stepKey="openProductPage"> |
| 63 | + <argument name="product" value="$createProduct$"/> |
| 64 | + </actionGroup> |
| 65 | + <actionGroup ref="AddProductWithQtyToCartFromStorefrontProductPageActionGroup" stepKey="cartAddSimpleProductToCart"> |
| 66 | + <argument name="productName" value="$createProduct.name$"/> |
| 67 | + <argument name="productQty" value="1"/> |
| 68 | + </actionGroup> |
| 69 | + <actionGroup ref="StorefrontOpenCheckoutPageActionGroup" stepKey="navigateToCheckoutPage"/> |
| 70 | + <actionGroup ref="GuestCheckoutFillingShippingSectionActionGroup" stepKey="guestCheckoutFillingShipping"/> |
| 71 | + <waitForElementClickable selector="{{StorefrontCheckoutPaymentMethodsSection.bankTransfer}}" stepKey="waitForBankTransferMethod" /> |
| 72 | + <click selector="{{StorefrontCheckoutPaymentMethodsSection.bankTransfer}}" stepKey="selectBankTransferMethod"/> |
| 73 | + <actionGroup ref="ClickPlaceOrderActionGroup" stepKey="checkoutPlaceOrder"/> |
| 74 | + <grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumberWithoutLink}}" stepKey="grabOrderNumber"/> |
| 75 | + <actionGroup ref="AdminOrdersPageOpenActionGroup" stepKey="goToOrders"/> |
| 76 | + <actionGroup ref="OpenOrderByIdActionGroup" stepKey="openOrder"> |
| 77 | + <argument name="orderId" value="{$grabOrderNumber}"/> |
| 78 | + </actionGroup> |
| 79 | + <actionGroup ref="AdminClickInvoiceButtonOrderViewActionGroup" stepKey="clickInvoiceButton"/> |
| 80 | + <actionGroup ref="AdminInvoiceClickSubmitActionGroup" stepKey="clickSubmitInvoice"/> |
| 81 | + <scrollTo selector="{{CatalogSection.paymentInformation}}" stepKey="scrollToPaymentAndShippingInformation"/> |
| 82 | + <waitForText selector="{{AdminOrderPaymentInformationSection.paymentMethod}}" userInput="Bank Transfer Payment(Second)" stepKey="seePaymentMethodNameU"/> |
| 83 | + <waitForElementClickable selector="{{AdminOrderDetailsMainActionsSection.ship}}" stepKey="waitForShipActionClickable" /> |
| 84 | + <click selector="{{AdminOrderDetailsMainActionsSection.ship}}" stepKey="clickShipAction"/> |
| 85 | + <waitForElementClickable selector="{{AdminShipmentMainActionsSection.submitShipment}}" stepKey="waitForSubmitShipmentButtonClickable" /> |
| 86 | + <click selector="{{AdminShipmentMainActionsSection.submitShipment}}" stepKey="clickSubmitShipment"/> |
| 87 | + <scrollTo selector="{{CatalogSection.paymentInformation}}" stepKey="scrollToPaymentAndShippingInformationUnderShipmentPage"/> |
| 88 | + <waitForText selector="{{AdminOrderPaymentInformationSection.paymentMethod}}" userInput="Bank Transfer Payment(Second)" stepKey="seePaymentMethodNameUnderShipmentPage"/> |
| 89 | + <actionGroup ref="AdminStartToCreateCreditMemoFromOrderPageActionGroup" stepKey="startCreatingCreditMemo"/> |
| 90 | + <actionGroup ref="SubmitCreditMemoActionGroup" stepKey="submitCreditMemo"/> |
| 91 | + <scrollTo selector="{{CatalogSection.paymentInformation}}" stepKey="scrollToPaymentAndShippingInformationUnderCreditMemoPage"/> |
| 92 | + <waitForText selector="{{AdminOrderPaymentInformationSection.paymentMethod}}" userInput="Bank Transfer Payment(Second)" stepKey="seePaymentMethodNameUnderCreditMemoPage"/> |
| 93 | + </test> |
| 94 | +</tests> |
0 commit comments