<?xml version="1.0" encoding="UTF-8"?>
<!--
 /**
  * Copyright © Magento, Inc. All rights reserved.
  * See COPYING.txt for license details.
  */
-->

<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
    <actionGroup name="AdminFillCustomerMainDataActionGroup">
        <annotations>
            <description>Fill customer main required data. Starts on customer creation/edit page.</description>
        </annotations>

        <arguments>
            <argument name="firstName" type="string" defaultValue="{{Simple_US_Customer.firstname}}"/>
            <argument name="lastName" type="string" defaultValue="{{Simple_US_Customer.lastname}}"/>
            <argument name="email" type="string" defaultValue="{{Simple_US_Customer.email}}"/>
        </arguments>
        <waitForElementVisible selector="{{AdminCustomerAccountInformationSection.firstName}}" stepKey="waitForCustomerPageLoad"/>
        <fillField selector="{{AdminCustomerAccountInformationSection.firstName}}" userInput="{{firstName}}" stepKey="fillFirstName"/>
        <fillField selector="{{AdminCustomerAccountInformationSection.lastName}}" userInput="{{lastName}}" stepKey="fillLastName"/>
        <fillField selector="{{AdminCustomerAccountInformationSection.email}}" userInput="{{email}}" stepKey="fillEmail"/>
    </actionGroup>
</actionGroups>
