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

        <waitForElement selector="{{StorefrontMinicartSection.productLinkByName(product.name)}}" stepKey="waitForMinicartProduct"/>
        <click selector="{{StorefrontMinicartSection.showCart}}" stepKey="clickShowMinicart"/>
        <see userInput="${{optionProduct.price}}.00" selector="{{StorefrontMinicartSection.productPriceByName(product.name)}}" stepKey="assertProductPrice"/>
    </actionGroup>
</actionGroups>
