<?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="AdminCustomerGridApplyInputFilterActionGroup">
        <annotations>
            <description>Filters the Admin Customers grid by attribute.</description>
        </annotations>
        <arguments>
            <argument name="name" type="string"/>
            <argument name="value" type="string"/>
        </arguments>

        <click selector="{{AdminCustomerFiltersSection.filtersButton}}" stepKey="openFilters"/>
        <conditionalClick selector="{{AdminCustomerFiltersSection.clearAll}}" dependentSelector="{{AdminCustomerFiltersSection.clearAll}}" visible="true" stepKey="clickClearFilters"/>
        <waitForPageLoad stepKey="waitForClearFilters"/>
        <fillField selector="{{AdminCustomerFiltersSection.genericInput(name)}}" userInput="{{value}}" stepKey="fillInValue"/>
        <click selector="{{AdminCustomerFiltersSection.apply}}" stepKey="clickApplyFilters"/>
        <waitForPageLoad stepKey="waitForPageToLoad"/>
    </actionGroup>
</actionGroups>
