<?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="VertexAddressValidationUpdateAddressActionGroup">
        <annotations>
            <description>Accept the correct Address provided by Address Validation</description>
        </annotations>

        <waitForElementVisible selector="{{StorefrontCustomerAddressFormSection.messageDifference}}" stepKey="assertMessageVisible"/>
        <click stepKey="updateAddress" selector="{{StorefrontCustomerAddressFormSection.updateAddress}}"/>
        <waitForElementVisible selector="{{StorefrontCustomerAddressFormSection.messageContainer}}" stepKey="assertMessageUpdated"/>
        <see userInput="The address was updated" selector="{{StorefrontCustomerAddressFormSection.messageContainer}}" stepKey="assertSuccessMessage" />
        <waitForLoadingMaskToDisappear stepKey="waitForLoadingElements"/>
    </actionGroup>
</actionGroups>
