<?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="StoreFrontAddProductWithCustomOptionToCartActionGroup" extends="AddSimpleProductToCartActionGroup">
        <annotations>
            <description>Add simple or virtual products to cart with custom option.</description>
        </annotations>
        <arguments>
            <argument name="quantity" type="string" defaultValue="{{minimalProductQty.value}}"/>
            <argument name="optionTitle" type="string" defaultValue="{{ProductOptionValueDropdown1.title}}"/>
            <argument name="optionPrice" type="string" defaultValue="{{ProductOptionValueDropdown1.price}}"/>
        </arguments>
        <fillField userInput="{{quantity}}" selector="{{StorefrontProductPageSection.qtyInput}}" stepKey="fillProductQty" after="goToProductPage"/>
        <selectOption selector="{{StorefrontProductPageSection.customOptionDropDown}}" userInput="{{optionTitle}} +${{optionPrice}}" stepKey="selectOption" after="fillProductQty"/>
    </actionGroup>
</actionGroups>
