<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
 * Copyright 2025 Adobe
 * All Rights Reserved.
 */
-->

<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
    <actionGroup name="AdminUnassignOrderStatusActionGroup">
        <annotations>
            <description>Unassigns order status from order state</description>
        </annotations>
        <waitForElementClickable selector="{{AdminOrderStatusGridSection.unassign}}" stepKey="waitToClickUnassignOrderStatus"/>
        <click selector="{{AdminOrderStatusGridSection.unassign}}" stepKey="clickUnassign"/>
        <waitForElementVisible selector="{{AdminMessagesSection.success}}" stepKey="waitForSuccessMessageVisible"/>
        <!-- "You have unassigned the order status." Message should be displayed -->
        <waitForText selector="{{AdminMessagesSection.success}}" userInput="{{OrderUnassignedStatusMessage.value}}" stepKey="seeAssertOrderStatusSuccessUnassignMessage"/>
    </actionGroup>
</actionGroups>
