<?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="VertexStoreFrontSetCustomerVatIdActionGroup">
        <arguments>
            <argument name="vatId" type="string" defaultValue="9999"/>
            <argument name="countryId" type="string" defaultValue="IT"/>
        </arguments>

        <amOnPage url="{{StorefrontCustomerEditPage.url}}" stepKey="goToAccountInformationPage"/>
        <fillField selector="{{StorefrontCustomerAccountInformationSection.taxVat}}" userInput="{{vatId}}" stepKey="TypeTaxvat"/>
        <selectOption selector="{{StorefrontCustomerAccountInformationSection.vertexVatRegistrationCountry}}" userInput="{{countryId}}" stepKey="selectCustomerCountry"/>

        <click selector="{{StorefrontCustomerAccountInformationSection.saveButton}}" stepKey="saveChange"/>
        <see userInput="You saved the account information." selector="{{StorefrontCustomerMessagesSection.successMessage}}" stepKey="verifyMessage" />
    </actionGroup>
</actionGroups>
