<?xml version="1.0" encoding="UTF-8"?>

<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
    <actionGroup name="GuestCheckoutFillNewShippingAddressNoTelephoneActionGroup">
        <annotations>
            <description>Fills in the provided Customer/Address details in the 'Shipping Address' section on the Storefront Checkout page. We need this AG in our code because the core GuestCheckoutFillNewShippingAddressActionGroup fills the telephone input, which doesn't work in our test with the ITI input.</description>
        </annotations>
        <arguments>
            <argument name="customer" type="entity"/>
            <argument name="address" type="entity"/>
        </arguments>

        <fillField selector="{{CheckoutShippingSection.email}}" userInput="{{customer.email}}" stepKey="fillEmailField"/>
        <fillField selector="{{CheckoutShippingSection.firstName}}" userInput="{{customer.firstName}}" stepKey="fillFirstName"/>
        <fillField selector="{{CheckoutShippingSection.lastName}}" userInput="{{customer.lastName}}" stepKey="fillLastName"/>
        <fillField selector="{{CheckoutShippingSection.street}}" userInput="{{address.street}}" stepKey="fillStreet"/>
        <fillField selector="{{CheckoutShippingSection.city}}" userInput="{{address.city}}" stepKey="fillCity"/>
        <selectOption selector="{{CheckoutShippingSection.region}}" userInput="{{address.state}}" stepKey="selectRegion"/>
        <fillField selector="{{CheckoutShippingSection.postcode}}" userInput="{{address.postcode}}" stepKey="fillZipCode"/>
    </actionGroup>
</actionGroups>
