<?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">
    <!--Reset customers grid filter and to default view -->
    <actionGroup name="AdminResetFilterInCustomerGrid">
        <annotations>
            <description>Clears the Admin Customer grid Filters. Sets the grid view to 'Default View'.</description>
        </annotations>

        <conditionalClick selector="{{AdminCustomerFiltersSection.clearAll}}" dependentSelector="{{AdminCustomerFiltersSection.clearAll}}" visible="true" stepKey="clickClearFilters"/>
        <click selector="{{AdminCustomerFiltersSection.viewDropdown}}" stepKey="openViewBookmarksTab"/>
        <click selector="{{AdminCustomerFiltersSection.viewBookmark(DefaultGridView.name)}}" stepKey="resetToDefaultGridView"/>
        <waitForPageLoad stepKey="waitForGridLoad"/>
        <see selector="{{AdminCustomerFiltersSection.viewDropdown}}" userInput="{{DefaultGridView.name}}" stepKey="seeDefaultViewSelected"/>
    </actionGroup>
</actionGroups>
