<?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">
    <!--Filter customer address grid by phone number -->
    <actionGroup name="AdminFilterCustomerAddressGridByPhoneNumber">
        <annotations>
            <description>Filters the Admin Customers grid by the provided Phone Number.</description>
        </annotations>
        <arguments>
            <argument name="phone" type="string"/>
        </arguments>

        <conditionalClick selector="{{AdminCustomerAddressFiltersSection.clearAll}}" dependentSelector="{{AdminCustomerAddressFiltersSection.clearAll}}" visible="true" stepKey="clickClearFilters"/>
        <click selector="{{AdminCustomerAddressFiltersSection.filtersButton}}" stepKey="openFilters"/>
        <fillField selector="{{AdminCustomerAddressFiltersSection.telephoneInput}}" userInput="{{phone}}" stepKey="fill"/>
        <click selector="{{AdminCustomerAddressFiltersSection.applyFilter}}" stepKey="clickApplyFilters"/>
    </actionGroup>
</actionGroups>
