<?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">
    <!-- Check Configurable Product in the Cart -->
    <actionGroup name="StorefrontCheckCartConfigurableProductActionGroup">
        <annotations>
            <description>Validates that the provided Option Price and Option Quantity is present and correct in the Mini Shopping Cart on the Storefront.</description>
        </annotations>
        <arguments>
            <argument name="product"/>
            <argument name="optionProduct"/>
            <argument name="productQuantity"/>
        </arguments>

        <seeElement selector="{{CheckoutCartProductSection.ProductLinkByName(product.name)}}" stepKey="assertProductName"/>
        <see userInput="${{optionProduct.price}}.00" selector="{{CheckoutCartProductSection.ProductPriceByName(product.name)}}" stepKey="assertProductPrice"/>
        <seeInField userInput="{{productQuantity}}" selector="{{CheckoutCartProductSection.ProductQuantityByName(product.name)}}" stepKey="assertProductQuantity"/>
    </actionGroup>

    <!-- Open the Minicart and check Configurable Product -->

</actionGroups>
