<?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="VertexAdminOrderCreateAssertShippingAddressFieldsActionGroup">
        <annotations>
            <description>Assert the contents of shipping address fields match what is expected</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="State" defaultValue=""/>
            <argument type="string" name="PostalCode" defaultValue=""/>
            <argument type="string" name="Country" defaultValue=""/>

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

        <seeInField userInput="{{FirstName}}" selector="{{AdminOrderFormShippingAddressSection.FirstName}}" stepKey="seeFirstName"/>
        <seeInField userInput="{{LastName}}" selector="{{AdminOrderFormShippingAddressSection.LastName}}" stepKey="seeLastName"/>
        <seeInField userInput="{{Street1}}" selector="{{AdminOrderFormShippingAddressSection.StreetLine1}}" stepKey="seeStreet1"/>
        <seeInField userInput="{{Street2}}" selector="{{AdminOrderFormShippingAddressSection.StreetLine2}}" stepKey="seeStreet2"/>
        <seeOptionIsSelected userInput="{{State}}" selector="{{AdminOrderFormShippingAddressSection.State}}" stepKey="seeState"/>
        <seeInField userInput="{{PostalCode}}" selector="{{AdminOrderFormShippingAddressSection.PostalCode}}" stepKey="seePostalCode"/>
        <seeOptionIsSelected userInput="{{Country}}" selector="{{AdminOrderFormShippingAddressSection.Country}}" stepKey="seeCountry"/>
        <seeInField userInput="{{Phone}}" selector="{{AdminOrderFormShippingAddressSection.Phone}}" stepKey="seePhone"/>
    </actionGroup>
</actionGroups>
