<?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="VertexAddressValidationUpdatedToValidMessageActionGroup">
        <annotations>
            <description>See the update to valid message after we hit the button update to valid.</description>
        </annotations>
        <arguments>
            <argument type="string" name="postCode"/>
        </arguments>
        <see stepKey="postCode" selector="{{CheckoutShippingSection.addressInvalidFieldsContainer}}"
             userInput="{{postCode}}"/>

        <conditionalClick selector="{{CheckoutShippingSection.updateLinkToValidAddress}}"
                          dependentSelector="{{CheckoutShippingSection.addressMessageWarning}}"
                          visible="true"
                          stepKey="updateButtonToValidAddress"/>

        <conditionalClick selector="{{CheckoutPaymentSection.update}}"
                          dependentSelector="{{CheckoutShippingSection.addressMessageWasValid}}"
                          visible="true"
                          stepKey="clickOnUpdateButtonAfterValidation"/>
    </actionGroup>
</actionGroups>
