<?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="VertexAdminOrderFillBillingAddressWithStateActionGroup">
        <annotations>
            <description>Fill billing address fields (when region should be selected) on admin create order page</description>
        </annotations>
        <arguments>
            <argument type="string" name="FirstName" defaultValue=""/>
            <argument type="string" name="LastName" defaultValue=""/>

            <argument type="string" name="Street1" defaultValue=""/>
            <argument type="string" name="Street2" defaultValue=""/>

            <argument type="string" name="City" defaultValue=""/>
            <argument type="string" name="State" defaultValue=""/>
            <argument type="string" name="PostalCode" defaultValue=""/>
            <argument type="string" name="Country" defaultValue=""/>

            <argument type="string" name="Phone" defaultValue=""/>
        </arguments>

        <fillField userInput="{{FirstName}}" selector="{{AdminOrderFormBillingAddressSection.FirstName}}" stepKey="fillFirstName"/>
        <fillField userInput="{{LastName}}" selector="{{AdminOrderFormBillingAddressSection.LastName}}" stepKey="fillLastName"/>
        <fillField userInput="{{Street1}}" selector="{{AdminOrderFormBillingAddressSection.StreetLine1}}" stepKey="fillStreet1"/>
        <fillField userInput="{{Street2}}" selector="{{AdminOrderFormBillingAddressSection.StreetLine2}}" stepKey="fillStreet2"/>
        <fillField userInput="{{City}}" selector="{{AdminOrderFormBillingAddressSection.City}}" stepKey="fillCity"/>
        <selectOption userInput="{{State}}" selector="{{AdminOrderFormBillingAddressSection.State}}" stepKey="fillState"/>
        <fillField userInput="{{PostalCode}}" selector="{{AdminOrderFormBillingAddressSection.PostalCode}}" stepKey="fillPostalCode"/>
        <selectOption userInput="{{Country}}" selector="{{AdminOrderFormBillingAddressSection.Country}}" stepKey="fillCountry"/>
        <fillField userInput="{{Phone}}" selector="{{AdminOrderFormBillingAddressSection.Phone}}" stepKey="fillPhone"/>
    </actionGroup>
</actionGroups>
