Skip to content

Commit 8a1da8d

Browse files
[AC-5671] Bank Transfer Payment - store label is not being displayed on order/invoice/shipping/creditmemo details.
Updated testcase
1 parent 6e6f9de commit 8a1da8d

File tree

1 file changed

+19
-32
lines changed

1 file changed

+19
-32
lines changed

app/code/Magento/Paypal/Test/Mftf/Test/AdminPaymentBankTransferHavingMultipleStoresTest.xml

Lines changed: 19 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@
1717
<testCaseId value="AC-5671"/>
1818
<group value="Payments"/>
1919
</annotations>
20-
<before>
20+
<before>
2121
<magentoCLI command="config:set {{EnablePaymentBankTransferConfigData.path}} {{EnablePaymentBankTransferConfigData.value}}" stepKey="enableBankTransferPayment"/>
22-
<!--Create customer-->
23-
<createData entity="Simple_US_CA_Customer" stepKey="createCustomer"/>
2422
<createData entity="defaultSimpleProduct" stepKey="createProduct"/>
2523
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
2624
<actionGroup ref="CreateCustomStoreActionGroup" stepKey="createCustomStore">
@@ -41,36 +39,26 @@
4139
<after>
4240
<magentoCLI command="config:set {{DisablePaymentBankTransferConfigData.path}} {{DisablePaymentBankTransferConfigData.value}}" stepKey="disableBankTransferPayment"/>
4341
<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>
4448
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
4549
</after>
46-
<amOnPage url="{{AdminConfigPaymentMethodsPage.url}}" stepKey="navigateToPaymentConfigurationPage"/>
50+
<actionGroup ref="AdminNavigateToConfigurationPaymentMethodSectionActionGroup" stepKey="navigateToPaymentConfigurationPage"/>
4751
<actionGroup ref="AdminSwitchSecondStoreViewActionGroup" stepKey="AdminSwitchSecondStoreView">
4852
<argument name="secondStoreView" value="customStoreEN"/>
4953
</actionGroup>
5054
<conditionalClick selector="{{CatalogSection.expandedTab}}" dependentSelector="{{CatalogSection.productsPerPageOnGridBankTransferPaymentDefaultValueUseConfigCheckbox}}" visible="false" stepKey="expandOtherPaypalConfigButton"/>
5155
<uncheckOption selector="{{CatalogSection.productsPerPageOnGridBankTransferPaymentDefaultValueUseConfigCheckbox}}" stepKey="uncheckUseSystemValue"/>
56+
<waitForElementVisible selector="{{CatalogSection.productsPerPageOnGridAllowedBankTransferPaymentValues}}" stepKey="waitForContentHeading"/>
5257
<fillField selector="{{CatalogSection.productsPerPageOnGridAllowedBankTransferPaymentValues}}" userInput="Bank Transfer Payment(Second)" stepKey="fillProductQuantity"/>
5358
<actionGroup ref="AdminSavePaymentConfigActionGroup" stepKey="clickSaveConfigBtn"/>
5459
<actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanInvalidatedCaches">
5560
<argument name="tags" value="config full_page"/>
5661
</actionGroup>
57-
<!--Open customer edit page-->
58-
<actionGroup ref="AdminOpenCustomerEditPageActionGroup" stepKey="openCustomerEditPage">
59-
<argument name="customerId" value="$createCustomer.id$"/>
60-
</actionGroup>
61-
<!--Navigate to "Account Information" tab-->
62-
<actionGroup ref="AdminOpenAccountInformationTabFromCustomerEditPageActionGroup" stepKey="openAccountInformationEditPage"/>
63-
<actionGroup ref="AdminSelectStoreInCustomerEditPageActionGroup" stepKey="selectWebsiteGroupStoreForFRCustomerMembersGroup">
64-
<argument name="store" value="{{customStoreEN.name}}"/>
65-
</actionGroup>
66-
<waitForPageLoad stepKey="waitForCustomersPage"/>
67-
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
68-
<argument name="indices" value=""/>
69-
</actionGroup>
70-
<!-- Login as Customer Login from Customer page -->
71-
<actionGroup ref="LoginToStorefrontActionGroup" stepKey="customerLogin">
72-
<argument name="Customer" value="$$createCustomer$$" />
73-
</actionGroup>
7462
<actionGroup ref="StorefrontOpenProductEntityPageActionGroup" stepKey="openProductPage">
7563
<argument name="product" value="$createProduct$"/>
7664
</actionGroup>
@@ -79,29 +67,28 @@
7967
<argument name="productQty" value="1"/>
8068
</actionGroup>
8169
<actionGroup ref="StorefrontOpenCheckoutPageActionGroup" stepKey="navigateToCheckoutPage"/>
82-
<actionGroup ref="StorefrontSetShippingMethodActionGroup" stepKey="selectFlatrate">
83-
<argument name="shippingMethodName" value="Flat Rate"/>
84-
</actionGroup>
85-
<actionGroup ref="StorefrontCheckoutClickNextOnShippingStepActionGroup" stepKey="clickNext"/>
70+
<actionGroup ref="GuestCheckoutFillingShippingSectionActionGroup" stepKey="guestCheckoutFillingShipping"/>
71+
<waitForElementClickable selector="{{StorefrontCheckoutPaymentMethodsSection.bankTransfer}}" stepKey="waitForBankTransferMethod" />
8672
<click selector="{{StorefrontCheckoutPaymentMethodsSection.bankTransfer}}" stepKey="selectBankTransferMethod"/>
8773
<actionGroup ref="ClickPlaceOrderActionGroup" stepKey="checkoutPlaceOrder"/>
88-
<waitForElementVisible selector="{{CheckoutSuccessMainSection.orderNumber22}}" stepKey="waitForOderNumber"/>
89-
<grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumber22}}" stepKey="grabOrderNumber"/>
74+
<grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumberWithoutLink}}" stepKey="grabOrderNumber"/>
9075
<actionGroup ref="AdminOrdersPageOpenActionGroup" stepKey="goToOrders"/>
9176
<actionGroup ref="OpenOrderByIdActionGroup" stepKey="openOrder">
9277
<argument name="orderId" value="{$grabOrderNumber}"/>
9378
</actionGroup>
9479
<actionGroup ref="AdminClickInvoiceButtonOrderViewActionGroup" stepKey="clickInvoiceButton"/>
9580
<actionGroup ref="AdminInvoiceClickSubmitActionGroup" stepKey="clickSubmitInvoice"/>
9681
<scrollTo selector="{{CatalogSection.paymentInformation}}" stepKey="scrollToPaymentAndShippingInformation"/>
97-
<waitForText selector="{{AdminOrderPaymentInformationSection.paymentMethod}}" userInput="Bank Transfer Payment(Second)" stepKey="seePaymentMethodName"/>
82+
<waitForText selector="{{AdminOrderPaymentInformationSection.paymentMethod}}" userInput="Bank Transfer Payment(Second)" stepKey="seePaymentMethodNameU"/>
83+
<waitForElementClickable selector="{{AdminOrderDetailsMainActionsSection.ship}}" stepKey="waitForShipActionClickable" />
9884
<click selector="{{AdminOrderDetailsMainActionsSection.ship}}" stepKey="clickShipAction"/>
85+
<waitForElementClickable selector="{{AdminShipmentMainActionsSection.submitShipment}}" stepKey="waitForSubmitShipmentButtonClickable" />
9986
<click selector="{{AdminShipmentMainActionsSection.submitShipment}}" stepKey="clickSubmitShipment"/>
100-
<scrollTo selector="{{CatalogSection.paymentInformation}}" stepKey="scrollToPaymentAndShippingInformation2"/>
101-
<waitForText selector="{{AdminOrderPaymentInformationSection.paymentMethod}}" userInput="Bank Transfer Payment(Second)" stepKey="seePaymentMethodName2"/>
87+
<scrollTo selector="{{CatalogSection.paymentInformation}}" stepKey="scrollToPaymentAndShippingInformationUnderShipmentPage"/>
88+
<waitForText selector="{{AdminOrderPaymentInformationSection.paymentMethod}}" userInput="Bank Transfer Payment(Second)" stepKey="seePaymentMethodNameUnderShipmentPage"/>
10289
<actionGroup ref="AdminStartToCreateCreditMemoFromOrderPageActionGroup" stepKey="startCreatingCreditMemo"/>
10390
<actionGroup ref="SubmitCreditMemoActionGroup" stepKey="submitCreditMemo"/>
104-
<scrollTo selector="{{CatalogSection.paymentInformation}}" stepKey="scrollToPaymentAndShippingInformation3"/>
105-
<waitForText selector="{{AdminOrderPaymentInformationSection.paymentMethod}}" userInput="Bank Transfer Payment(Second)" stepKey="seePaymentMethodName3"/>
91+
<scrollTo selector="{{CatalogSection.paymentInformation}}" stepKey="scrollToPaymentAndShippingInformationUnderCreditMemoPage"/>
92+
<waitForText selector="{{AdminOrderPaymentInformationSection.paymentMethod}}" userInput="Bank Transfer Payment(Second)" stepKey="seePaymentMethodNameUnderCreditMemoPage"/>
10693
</test>
10794
</tests>

0 commit comments

Comments
 (0)