<?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="AdminFilterVariableGridActionGroup">
        <arguments>
            <argument name="variable" type="entity"/>
        </arguments>
        <click selector="{{AdminLegacyDataGridFilterSection.clear}}" stepKey="resetFilters" />
        <waitForPageLoad stepKey="waitForFilterReset" />
        <fillField selector="{{AdminVariableGridFilterSection.codeField}}" userInput="{{variable.code}}" stepKey="fillCodeFieldInFilter"/>
        <fillField selector="{{AdminVariableGridFilterSection.nameField}}" userInput="{{variable.name}}" stepKey="fillNameFieldInFilter"/>
        <click selector="{{AdminLegacyDataGridFilterSection.apply}}" stepKey="clickSearchButton"/>
        <waitForPageLoad stepKey="waitForFiltersApply" />
    </actionGroup>
</actionGroups>
