<?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="StorefrontPickInStoreFillCustomerEmail">
        <annotations>
            <description>Fills customer email in store pickup tab.</description>
        </annotations>
        <arguments>
            <argument name="email" type="string" defaultValue="{{Simple_US_Customer.email}}"/>
        </arguments>
        <seeInCurrentUrl url="checkout/#shipping" stepKey="checkUrlFormKey"/>
        <waitForPageLoad time="30" stepKey="waitForPageRefresh"/>
        <waitForElementVisible selector="{{StorefrontSelectStoreSection.customerEmailField}}" stepKey="waitForEmailFieldVisible" />
        <fillField selector="{{StorefrontSelectStoreSection.customerEmailField}}" userInput="{{email}}" stepKey="fillCustomerEmail"/>
    </actionGroup>
</actionGroups>
