<?xml version="1.0" encoding="UTF-8"?>
<!--
 /**
  * @copyright  Vertex. All rights reserved.  https://www.vertexinc.com/
  * @author     Mediotype                     https://www.mediotype.com/
  */
-->
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
    <actionGroup name="VertexAdminClickOrderCreateValidateShippingAddressButtonActionGroup">
        <annotations>
            <description>Click the "Validate Address" button for the shipping address during admin order creation</description>
        </annotations>

        <seeElement stepKey="assertButtonEnabled" selector="{{AdminOrderFormShippingAddressSection.ValidateAddressButton}}"/>

        <click stepKey="clickButton" selector="{{AdminOrderFormShippingAddressSection.ValidateAddressButton}}"/>
        <waitForAjaxLoad stepKey="waitForAjax"/>
        <wait stepKey="waitForAnimation" time="1"/>

        <seeElement stepKey="assertMessageContainerExists" selector="{{AdminOrderFormShippingAddressSection.VertexMessageContainer}}"/>
    </actionGroup>
</actionGroups>
