Skip to content

Commit 4ca35c3

Browse files
“Pavan-bj”“Pavan-bj”
authored andcommitted
ACQE-7117|Reorder in admin panel order placed using DHL (AP) as a shipping method
Modified Tc's as per latest changes
1 parent 6e1e9fc commit 4ca35c3

File tree

1 file changed

+6
-51
lines changed

1 file changed

+6
-51
lines changed

app/code/Magento/Dhl/Test/Mftf/Test/AdminReorderPlacedUsingDHLAPShippingMethodTest.xml

Lines changed: 6 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
11-
<test name="AdminReorderPlacedUsingDHLAPShippingMethodTest">
11+
<test name="AdminReorderPlacedUsingDHLAPShippingMethodTest" extends="StorefrontRegisteredCustomerUsesDHLAPOnlineShippingCarrierOnCheckoutTest">
1212
<annotations>
1313
<stories value="Admin Reorder with DHL Shipping method"/>
1414
<title value="Reorder placed order using DHL in admin panel"/>
@@ -18,61 +18,16 @@
1818
<!-- <group value="pr_exclude"/>-->
1919
<group value="3rd_party_integration"/>
2020
</annotations>
21-
<before>
22-
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
23-
<createData entity="Simple_US_Customer" stepKey="createCustomer"/>
24-
<!--Create simple product-->
25-
<createData entity="SimpleProduct" stepKey="createSimpleProduct"/>
26-
<actionGroup ref="AdminEnableDHLAPWithoutAccountAndCountryConfigurationActionGroup" stepKey="enableDHL"/>
27-
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
28-
<argument name="indices" value=""/>
29-
</actionGroup>
30-
<actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanCache">
31-
<argument name="tags" value="config full_page"/>
32-
</actionGroup>
33-
</before>
34-
<after>
35-
<actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="logoutCustomer" />
36-
<deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/>
37-
<deleteData createDataKey="createSimpleProduct" stepKey="deleteSimpleProduct"/>
38-
<actionGroup ref="AdminDisableDHLConfigurationActionGroup" stepKey="resetDhlConfig"/>
39-
<actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/>
40-
</after>
41-
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToStoreFront"/>
42-
<!-- Add simple product to cart -->
43-
<actionGroup ref="AddSimpleProductToCartActionGroup" stepKey="addProductToCart">
44-
<argument name="product" value="$$createSimpleProduct$$"/>
45-
</actionGroup>
46-
<!--Open cart page and proceed to checkout-->
47-
<actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="goToCheckoutCartPage"/>
48-
<actionGroup ref="StorefrontClickProceedToCheckoutActionGroup" stepKey="clickProceedToCheckout"/>
49-
<!--Fill Shipping Address-->
50-
<actionGroup ref="GuestCheckoutFillNewShippingAddressActionGroup" stepKey="fillShippingAddress">
51-
<argument name="customer" value="$$createCustomer$$" />
52-
<argument name="address" value="US_Address_TX"/>
53-
</actionGroup>
54-
<!-- Select DHL shipping method -->
55-
<actionGroup ref="StorefrontSetShippingMethodActionGroup" stepKey="selectShippingMethodAsDHL">
56-
<argument name="shippingMethodName" value="DHL"/>
57-
</actionGroup>
58-
<!-- Go to Order review -->
59-
<actionGroup ref="StorefrontCheckoutClickNextOnShippingStepActionGroup" stepKey="goToCheckoutPaymentPage"/>
60-
<!-- Checkout select Check/Money Order payment -->
61-
<actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="selectCheckMoneyPayment"/>
62-
<actionGroup ref="ClickPlaceOrderActionGroup" stepKey="clickPlaceOrder"/>
63-
<grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumber}}" stepKey="grabOrderNumber"/>
64-
<!-- Reorder created order -->
65-
<actionGroup ref="FilterOrderGridByIdActionGroup" stepKey="filterOrderGrid">
66-
<argument name="orderId" value="$grabOrderNumber"/>
67-
</actionGroup>
21+
<remove keyForRemoval="selectExpressWorldWide"/>
22+
<click selector="{{CheckoutCartSummarySection.shippingMethods('Express easy')}}" after="verifyMedicalExpressIsAvailable" stepKey="selectExpressEasy"/>
6823
<actionGroup ref="AdminOrderGridClickFirstRowActionGroup" stepKey="clickOrderRow"/>
6924
<actionGroup ref="AdminStartReorderFromOrderPageActionGroup" stepKey="startReorder"/>
7025
<!--select Check/Money order payment method-->
71-
<scrollTo selector="{{AdminOrderFormPaymentSection.DHLShipping('Domestic express')}}" stepKey="scrollToDHLShippingMethod"/>
72-
<waitForText selector="{{AdminOrderFormPaymentSection.DHLShipping('Domestic express')}}" userInput="Domestic express" stepKey="verifyDHLShippingMethodIsSelected"/>
26+
<scrollTo selector="{{AdminOrderFormPaymentSection.DHLShipping('Express easy')}}" stepKey="scrollToDHLShippingMethod"/>
27+
<waitForText selector="{{AdminOrderFormPaymentSection.DHLShipping('Express easy')}}" userInput="Express easy" stepKey="verifyDHLShippingMethodIsSelected"/>
7328
<waitForText selector="{{AdminOrderFormPaymentSection.verifyCheckMoneyPayment}}" userInput="Check / Money order" stepKey="verifyCheckMoneyOrderIsSelected"/>
7429
<actionGroup ref="AdminSubmitOrderActionGroup" stepKey="submitOrder"/>
7530
<actionGroup ref="AdminOrderViewCheckStatusActionGroup" stepKey="seeAdminOrderStatusIsPending"/>
76-
<waitForText selector="{{AdminOrderFormPaymentSection.shippingMethodName('DHL - Domestic express')}}" userInput="DHL - Domestic express" stepKey="verifyShippingAndHandlingInformationInOrderPage"/>
31+
<waitForText selector="{{AdminOrderFormPaymentSection.shippingMethodName('DHL - Express easy')}}" userInput="DHL - Express easy" stepKey="verifyShippingAndHandlingInformationInOrderPage"/>
7732
</test>
7833
</tests>

0 commit comments

Comments
 (0)