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 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 >
Original file line number Diff line number Diff line change 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}}" />
You can’t perform that action at this time.
0 commit comments