File tree Expand file tree Collapse file tree 3 files changed +28
-6
lines changed
app/code/Magento/Sales/Test/Mftf Expand file tree Collapse file tree 3 files changed +28
-6
lines changed Original file line number Diff line number Diff line change
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 >
Original file line number Diff line number Diff line change 18
18
<data key =" sent" >An example comment when Status is sent.</data >
19
19
<data key =" readyForPickup" >An example comment when Status is Ready For Pickup.</data >
20
20
</entity >
21
- <entity name =" OrderMessage " >
21
+ <entity name =" OrderUnassignedStatusMessage " >
22
22
<data key =" value" >You have unassigned the order status.</data >
23
23
</entity >
24
24
</entities >
Original file line number Diff line number Diff line change 66
66
<argument name =" statusLabel" value =" {{readyToPickup.label}}" />
67
67
<argument name =" statusCode" value =" {{readyToPickup.code}}" />
68
68
</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 >
74
72
<!-- Step 8: Verify the default status for the order status Processing -->
75
73
<actionGroup ref =" FilterOrderStatusByLabelAndCodeActionGroup" stepKey =" filterStatusForOrderInGrid" >
76
74
<argument name =" statusLabel" value =" {{OrderStatus.processing}}" />
You can’t perform that action at this time.
0 commit comments