<?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="StorefrontSelectFirstBillingAddressActionGroup">
        <annotations>
            <description>On "Payment Method" step of Checkout, unchecks the "Billing Address same as Shipping" and then select address by Entity</description>
        </annotations>

        <uncheckOption selector="{{CheckoutPaymentSection.billingAddressNotSameCheckbox}}" stepKey="setBillingOtherThanShipping"/>
        <conditionalClick selector="{{CheckoutPaymentSection.editAddress}}" dependentSelector="{{CheckoutPaymentSection.billingAddressSelectShared}}" visible="false" stepKey="openEditSelector"/>
        <selectOption selector="{{CheckoutPaymentSection.billingAddressSelectShared}}" userInput="" stepKey="chooseNewAddress"/>
        <click selector="{{CheckoutPaymentSection.update}}" stepKey="updateAddress"/>
    </actionGroup>
</actionGroups>
