Skip to content

Commit 69840c7

Browse files
ACQE-8470: Reorder the previously created order and verify the parent child relation in the order view page.
- Added action group for enable disable flat rate shipping and money order payment method
1 parent cdf9654 commit 69840c7

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

app/code/Magento/Sales/Test/Mftf/Data/ConstData.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
/**
4-
* Copyright © Magento, Inc. All rights reserved.
5-
* See COPYING.txt for license details.
4+
* Copyright 2025 Adobe
5+
* All Rights Reserved.
66
*/
77
-->
88

app/code/Magento/Sales/Test/Mftf/Section/AdminOrderDetailsMainActionsSection.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
/**
4-
* Copyright 2024 Adobe
4+
* Copyright 2025 Adobe
55
* All Rights Reserved.
66
*/
77
-->
@@ -31,7 +31,7 @@
3131
<element name="void" type="button" selector="#void_payment span"/>
3232
<element name="invoiceTabContent1" type="text" selector="#sales_order_view_tabs_order_invoices_content > div > div.admin__data-grid-wrap > table > tbody > tr > td"/>
3333
<element name="creditMemoWarning" type="text" selector="//div[@class='modal-content']//div[text()='This will create an offline refund. To create an online refund, open an invoice and create credit memo for it. Do you want to continue?']"/>
34-
<element name="linkToNewOrder" type="text" selector="//th[text()='Link to the New Order']"/>
35-
<element name="linkToPreviousOrder" type="text" selector="//th[text()='Link to the Previous Order']"/>
34+
<element name="linkToNewOrder" type="text" selector="//*[@id='sales_order_view_tabs_order_info_content']/section[1]/div[2]/div[1]/div[2]/table/tbody/tr[4]/th"/>
35+
<element name="linkToPreviousOrder" type="text" selector="//*[@id='sales_order_view_tabs_order_info_content']/section[1]/div[2]/div[1]/div[2]/table/tbody/tr[4]/th"/>
3636
</section>
3737
</sections>

app/code/Magento/Sales/Test/Mftf/Test/AdminOrderEditParentChildOrderLinksTest.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
</annotations>
2121
<before>
2222
<!-- Enable payment method one of "check/money order" and shipping method one of "flat rate" -->
23-
<magentoCLI command="config:set {{enabledCheckMoneyOrder.label}} 1" stepKey="enableCheckMoneyOrder"/>
24-
<magentoCLI command="config:set carriers/flatrate/active 1" stepKey="enableFlatRate"/>
23+
<actionGroup ref="CliEnableFlatRateShippingMethodActionGroup" stepKey="enableFlatRateShipping"/>
24+
<actionGroup ref="CliEnableCheckMoneyOrderPaymentMethodActionGroup" stepKey="enableCheckMoneyOrderPaymentMethod"/>
2525
<!-- Create product and customer -->
2626
<createData entity="SimpleProduct2" stepKey="createProduct"/>
2727
<createData entity="Simple_US_Customer" stepKey="createCustomer"/>
@@ -38,10 +38,10 @@
3838
<deleteData createDataKey="createProduct" stepKey="deleteProduct"/>
3939
<deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/>
4040
<actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/>
41-
<!-- Disable payment method "Check/Money Order" -->
42-
<magentoCLI command="config:set {{enabledCheckMoneyOrder.label}} 0" stepKey="disableCheckMoneyOrder"/>
4341
<!-- Disable shipping method "Flat Rate" -->
44-
<magentoCLI command="config:set carriers/flatrate/active 0" stepKey="disableFlatRate"/>
42+
<actionGroup ref="CliDisableFlatRateShippingMethodActionGroup" stepKey="disableFlatRateShipping"/>
43+
<!-- Disable payment method "Check/Money Order" -->
44+
<actionGroup ref="CliDisableCheckMoneyOrderPaymentMethodActionGroup" stepKey="disableCheckMoneyOrderPaymentMethod"/>
4545
</after>
4646
<!-- Grab original order ID -->
4747
<grabTextFrom selector="{{AdminOrderDetailsInformationSection.orderId}}" stepKey="grabOriginalOrderId"/>

0 commit comments

Comments
 (0)