<?xml version="1.0" encoding="UTF-8"?>
<!--
 /**
  * @copyright  Vertex. All rights reserved.  https://www.vertexinc.com/
  * @author     Mediotype                     https://www.mediotype.com/
  */
-->
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
    <actionGroup name="VertexAddBundleProductToCartActionGroup">
        <arguments>
            <argument name="product"/>
        </arguments>
        <amOnPage url="/{{product.custom_attributes[url_key]}}.html" stepKey="navigateProductPage" before="clickCustomize"/>
        <click selector="{{StorefrontBundledSection.addToCart}}" stepKey="clickCustomize"/>
        <waitForPageLoad stepKey="waitForBundleOpen"/>
        <click selector="{{StorefrontBundledSection.addToCartConfigured}}" stepKey="addToCartProduct"/>
        <waitForAjaxLoad stepKey="waitForLoad"/>
    </actionGroup>
</actionGroups>
