<?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="VertexStorefrontGoToCheckoutLastStepActionGroup">
        <amOnPage url="{{CheckoutPage.url}}" stepKey="goToCheckoutPage"/>
        <conditionalClick selector="{{CheckoutShippingMethodsSection.checkShippingMethodByName('Flat Rate')}}" dependentSelector="{{CheckoutShippingMethodsSection.checkShippingMethodByName('Flat Rate')}}" visible="true" stepKey="selectFlatRateShippingMethod"/>
        <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskForNextButton"/>

        <click selector="{{CheckoutShippingGuestInfoSection.next}}" stepKey="addressClickNext"/>
        <waitForPageLoad stepKey="addressWaitForShipmentPageLoad"/>

        <checkOption selector="{{CheckoutPaymentSection.billingAddressNotSameCheckbox}}" stepKey="addressSelectPaymentSolution" />
        <waitForElement selector="{{CheckoutPaymentSection.paymentSectionTitle}}" stepKey="addressVatWaitForPaymentSectionLoaded"/>
    </actionGroup>
</actionGroups>
