<?xml version="1.0" encoding="UTF-8"?>
<!--
 /**
  * Copyright © Magento, Inc. All rights reserved.
  * See COPYING.txt for license details.z
  */
-->

<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
    <actionGroup name="DeleteProductFromShoppingCartActionGroup">
        <annotations>
            <description>Removes the provided Product Name from the Storefront Mini Shopping Cart. Validates that the Success Message is present and correct.</description>
        </annotations>
        <arguments>
            <argument name="productName" type="string"/>
        </arguments>
        
        <click selector="{{CheckoutCartProductSection.removeProductByName(productName)}}" stepKey="deleteProductFromCheckoutCart"/>
        <waitForPageLoad stepKey="waitForPageLoad"/>
        <see userInput="You have no items in your shopping cart." stepKey="seeNoItemsInShoppingCart"/>
    </actionGroup>
</actionGroups>
