<?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="AssertAdminUserNotInGridActionGroup">
        <arguments>
            <argument name="userName" type="string"/>
        </arguments>
        <amOnPage url="{{AdminUsersPage.url}}" stepKey="navigateToUsersGrid"/>
        <click selector="{{AdminUserGridSection.resetButton}}" stepKey="resetGridFilter"/>
        <waitForPageLoad stepKey="waitForFiltersReset"/>
        <fillField selector="{{AdminUserGridSection.usernameFilterTextField}}" userInput="{{userName}}" stepKey="enterUserName"/>
        <click selector="{{AdminUserGridSection.searchButton}}" stepKey="clickSearch"/>
        <waitForPageLoad stepKey="waitForGridToLoad" time="15"/>
        <see selector="{{AdminUserGridSection.emptyRecords}}" userInput="We couldn't find any records." stepKey="seeEmptyRecordMessage"/>
    </actionGroup>
</actionGroups>
