<?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="AdminAssertGridRecordsPerPageNumberActionGroup">
        <annotations>
            <description>Validates that the number of records per page on the Ui grid page is correct.</description>
        </annotations>
        <arguments>
            <argument name="number" type="string" defaultValue="{{GridCountPerPageData.defaultCountPerPage}}"/>
        </arguments>
        <waitForElementVisible selector="{{AdminDataGridPaginationSection.perPageDropDownValue}}" stepKey="waitForDropdownVisible"/>
        <seeInField selector="{{AdminDataGridPaginationSection.perPageDropDownValue}}" userInput="{{number}}" stepKey="seePerPageValueInDropDown"/>
    </actionGroup>
</actionGroups>
