Skip to content

Commit cde1ecf

Browse files
committed
ACQE-8333: Check default status for processing when 'Use Order Status As Default' check box checked for custom order status
- Updated the actiongroup in testfile
1 parent 02bd217 commit cde1ecf

File tree

3 files changed

+28
-6
lines changed

3 files changed

+28
-6
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright 2025 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="AdminUnassignOrderStatusActionGroup">
12+
<annotations>
13+
<description>Unassign order status from order state</description>
14+
</annotations>
15+
<arguments>
16+
<argument name="message" type="string"/>
17+
</arguments>
18+
<waitForElementClickable selector="{{AdminOrderStatusGridSection.unassign}}" stepKey="waitToClickUnassignOrderStatus"/>
19+
<click selector="{{AdminOrderStatusGridSection.unassign}}" stepKey="clickUnassign"/>
20+
<waitForElementVisible selector="{{AdminMessagesSection.success}}" stepKey="waitForSuccessMessageVisible"/>
21+
<!-- "You have unassigned the order status." Message should be displayed -->
22+
<waitForText selector="{{AdminMessagesSection.success}}" userInput="{{message}}" stepKey="seeAssertOrderStatusSuccessUnassignMessage"/>
23+
</actionGroup>
24+
</actionGroups>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<data key="sent">An example comment when Status is sent.</data>
1919
<data key="readyForPickup">An example comment when Status is Ready For Pickup.</data>
2020
</entity>
21-
<entity name="OrderMessage">
21+
<entity name="OrderUnassignedStatusMessage">
2222
<data key="value">You have unassigned the order status.</data>
2323
</entity>
2424
</entities>

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,9 @@
6666
<argument name="statusLabel" value="{{readyToPickup.label}}"/>
6767
<argument name="statusCode" value="{{readyToPickup.code}}"/>
6868
</actionGroup>
69-
<waitForElementClickable selector="{{AdminOrderStatusGridSection.unassign}}" stepKey="waitToClickUnassignOrderStatus"/>
70-
<click selector="{{AdminOrderStatusGridSection.unassign}}" stepKey="clickUnassign"/>
71-
<waitForElementVisible selector="{{AdminMessagesSection.success}}" stepKey="waitForSuccessMessageVisible"/>
72-
<!-- "You have unassigned the order status." Message should be displayed -->
73-
<waitForText selector="{{AdminMessagesSection.success}}" userInput="{{OrderMessage.value}}" stepKey="seeAssertOrderStatusSuccessUnassignMessage"/>
69+
<actionGroup ref="AdminUnassignOrderStatusActionGroup" stepKey="unassignOrderStatus">
70+
<argument name="message" value="{{OrderUnassignedStatusMessage.value}}"/>
71+
</actionGroup>
7472
<!--Step 8: Verify the default status for the order status Processing -->
7573
<actionGroup ref="FilterOrderStatusByLabelAndCodeActionGroup" stepKey="filterStatusForOrderInGrid">
7674
<argument name="statusLabel" value="{{OrderStatus.processing}}"/>

0 commit comments

Comments
 (0)