<?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="VertexContinueToBillingStepActionGroup">
        <click selector="{{CheckoutShippingSection.firstShippingMethod}}" stepKey="selectFirstShippingMethod"/>
        <waitForElement selector="{{CheckoutShippingSection.next}}" time="30" stepKey="waitForNextButton"/>
        <click selector="{{CheckoutShippingSection.next}}" stepKey="clickNext"/>
        <waitForElement selector="{{CheckoutPaymentSection.paymentSectionTitle}}" time="30"
                        stepKey="waitForPaymentSectionLoaded"/>
        <seeInCurrentUrl url="{{CheckoutPage.url}}/#payment" stepKey="assertCheckoutPaymentUrl"/>

        <uncheckOption selector="{{CheckoutPaymentSection.billingAddressNotSameCheckbox}}"
                       stepKey="selectPaymentSolution"/>
        <waitForElementVisible selector="{{CheckoutShippingSection.addressDropdown}}"
                               stepKey="waitForAddressDropDownToBeVisible"/>
        <selectOption selector="{{CheckoutShippingSection.addressDropdown}}" userInput="New Address"
                      stepKey="addAddress"/>
        <waitForElementVisible selector="{{CheckoutPaymentSection.billingNewAddressForm}}"
                               stepKey="waitForTheAddressNewForm"/>
    </actionGroup>
</actionGroups>
