Skip to content

Commit f3ef51a

Browse files
committed
ACQE-7346:Import table rate shipping prices with specific amount including and excluding virtual products
Testcase Updated
1 parent 546a91a commit f3ef51a

File tree

2 files changed

+54
-4
lines changed

2 files changed

+54
-4
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright 2024 Adobe
5+
* All Rights Reserved.
6+
*/
7+
-->
8+
9+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="AdminSelectStoreInCustomerEditPageActionGroup">
12+
<annotations>
13+
<description>Select Website, Group, Send Welcome Email From on the Customer creation/edit page Account Information Tab.</description>
14+
</annotations>
15+
<arguments>
16+
<argument name="store" type="string"/>
17+
</arguments>
18+
19+
<selectOption stepKey="selectStoreView" selector="{{AdminCustomerAccountInformationSection.storeView}}" userInput="{{store}}"/>
20+
<waitForElement selector="{{AdminCustomerAccountInformationSection.storeView}}" stepKey="waitForCustomerStoreViewExpand"/>
21+
<click stepKey="saveCustomer" selector="{{AdminCustomerAccountInformationSection.saveCustomer}}"/>
22+
<waitForPageLoad stepKey="waitForCustomersPage"/>
23+
<see stepKey="seeCustomerSaveSuccessMessage" userInput="You saved the customer."/>
24+
</actionGroup>
25+
</actionGroups>

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

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
</annotations>
2020
<before>
2121
<magentoCLI command="config:set {{EnablePaymentBankTransferConfigData.path}} {{EnablePaymentBankTransferConfigData.value}}" stepKey="enableBankTransferPayment"/>
22+
<!--Create customer-->
23+
<createData entity="Simple_US_CA_Customer" stepKey="createCustomer"/>
2224
<createData entity="defaultSimpleProduct" stepKey="createProduct"/>
2325
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
2426
<actionGroup ref="CreateCustomStoreActionGroup" stepKey="createCustomStore">
@@ -45,11 +47,30 @@
4547
<actionGroup ref="AdminSwitchSecondStoreViewActionGroup" stepKey="AdminSwitchSecondStoreView">
4648
<argument name="secondStoreView" value="customStoreEN"/>
4749
</actionGroup>
48-
<waitForElementVisible selector="{{CatalogSection.expandedTab}}" stepKey="clickExpandSearchEngineOptimisation1"/>
49-
<click selector="{{CatalogSection.expandedTab}}" stepKey="clickExpandSearchEngineOptimisation2"/>
50+
<conditionalClick selector="{{CatalogSection.expandedTab}}" dependentSelector="{{CatalogSection.productsPerPageOnGridBankTransferPaymentDefaultValueUseConfigCheckbox}}" visible="false" stepKey="expandOtherPaypalConfigButton"/>
5051
<uncheckOption selector="{{CatalogSection.productsPerPageOnGridBankTransferPaymentDefaultValueUseConfigCheckbox}}" stepKey="uncheckUseSystemValue"/>
5152
<fillField selector="{{CatalogSection.productsPerPageOnGridAllowedBankTransferPaymentValues}}" userInput="Bank Transfer Payment(Second)" stepKey="fillProductQuantity"/>
5253
<actionGroup ref="AdminSavePaymentConfigActionGroup" stepKey="clickSaveConfigBtn"/>
54+
<actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanInvalidatedCaches">
55+
<argument name="tags" value="config full_page"/>
56+
</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>
5374
<actionGroup ref="StorefrontOpenProductEntityPageActionGroup" stepKey="openProductPage">
5475
<argument name="product" value="$createProduct$"/>
5576
</actionGroup>
@@ -58,10 +79,14 @@
5879
<argument name="productQty" value="1"/>
5980
</actionGroup>
6081
<actionGroup ref="StorefrontOpenCheckoutPageActionGroup" stepKey="navigateToCheckoutPage"/>
61-
<actionGroup ref="GuestCheckoutFillingShippingSectionActionGroup" stepKey="guestCheckoutFillingShipping"/>
82+
<actionGroup ref="StorefrontSetShippingMethodActionGroup" stepKey="selectFlatrate">
83+
<argument name="shippingMethodName" value="Flat Rate"/>
84+
</actionGroup>
85+
<actionGroup ref="StorefrontCheckoutClickNextOnShippingStepActionGroup" stepKey="clickNext"/>
6286
<click selector="{{StorefrontCheckoutPaymentMethodsSection.bankTransfer}}" stepKey="selectBankTransferMethod"/>
6387
<actionGroup ref="ClickPlaceOrderActionGroup" stepKey="checkoutPlaceOrder"/>
64-
<grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumberWithoutLink}}" stepKey="grabOrderNumber"/>
88+
<waitForElementVisible selector="{{CheckoutSuccessMainSection.orderNumber22}}" stepKey="waitForOderNumber"/>
89+
<grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumber22}}" stepKey="grabOrderNumber"/>
6590
<actionGroup ref="AdminOrdersPageOpenActionGroup" stepKey="goToOrders"/>
6691
<actionGroup ref="OpenOrderByIdActionGroup" stepKey="openOrder">
6792
<argument name="orderId" value="{$grabOrderNumber}"/>

0 commit comments

Comments
 (0)