<?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="VertexAdminOrderDetailsAssertBillingAddressCorrectActionGroup">
        <annotations>
            <description>Assert that the billing address on the admin order details page contains all the elements we expect</description>
        </annotations>
        <arguments>
            <argument name="FirstName" type="string" defaultValue="" />
            <argument name="LastName" type="string" defaultValue="" />
            <argument name="Street1" type="string" defaultValue="" />
            <argument name="Street2" type="string" defaultValue="" />
            <argument name="City" type="string" defaultValue="" />
            <argument name="State" type="string" defaultValue="" />
            <argument name="PostalCode" type="string" defaultValue="" />
            <argument name="Country" type="string" defaultValue="" />
            <argument name="Phone" type="string" defaultValue="" />
        </arguments>

        <see stepKey="assertSeeFirstName" selector="{{AdminOrderDetailsInformationSection.billingAddress}}" userInput="{{FirstName}}"/>
        <see stepKey="assertSeeLastName" selector="{{AdminOrderDetailsInformationSection.billingAddress}}" userInput="{{LastName}}"/>
        <see stepKey="assertSeeStreet1" selector="{{AdminOrderDetailsInformationSection.billingAddress}}" userInput="{{Street1}}"/>
        <see stepKey="assertSeeStreet2" selector="{{AdminOrderDetailsInformationSection.billingAddress}}" userInput="{{Street2}}"/>
        <see stepKey="assertSeeCity" selector="{{AdminOrderDetailsInformationSection.billingAddress}}" userInput="{{City}}"/>
        <see stepKey="assertSeeState" selector="{{AdminOrderDetailsInformationSection.billingAddress}}" userInput="{{State}}"/>
        <see stepKey="assertSeePostalCode" selector="{{AdminOrderDetailsInformationSection.billingAddress}}" userInput="{{PostalCode}}"/>
        <see stepKey="assertSeeCountry" selector="{{AdminOrderDetailsInformationSection.billingAddress}}" userInput="{{Country}}"/>
        <see stepKey="assertSeePhone" selector="{{AdminOrderDetailsInformationSection.billingAddress}}" userInput="{{Phone}}"/>
    </actionGroup>
</actionGroups>
