<?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="DeleteProductByNameActionGroup" extends="DeleteProductBySkuActionGroup">
        <annotations>
            <description>EXTENDS: DeleteProductBySkuActionGroup. Deletes the provided Product Name.</description>
        </annotations>
        <arguments>
            <argument name="sku" type="string" defaultValue=""/>
            <argument name="name" type="string"/>
        </arguments>

        <remove keyForRemoval="fillProductSkuFilter"/>
        <fillField selector="{{AdminProductGridFilterSection.nameFilter}}" userInput="{{name}}" stepKey="fillProductSkuFilter" after="openProductFilters"/>
        <remove keyForRemoval="seeProductSkuInGrid"/>
        <see selector="{{AdminProductGridSection.productGridCell('1', 'Name')}}" userInput="{{name}}"  stepKey="seeProductNameInGrid" after="clickApplyFilters"/>
    </actionGroup>
</actionGroups>
