<?xml version="1.0" encoding="UTF-8"?>
<!--
 /**
  * Copyright © Magento, Inc. All rights reserved.
  * See COPYING.txt for license details.
  */
-->

<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
    <test name="AdminCheckDefaultValueDisableAutoGroupChangeIsNoTest">
        <annotations>
            <features value="Customer"/>
            <stories value="Default Value for Disable Automatic Group Changes Based on VAT ID"/>
            <title value="Check settings Default Value for Disable Automatic Group Changes Based on VAT ID is No"/>
            <description value="Check settings Default Value for Disable Automatic Group Changes Based on VAT ID is No"/>
            <severity value="MAJOR"/>
            <group value="customer"/>
            <group value="create"/>
        </annotations>
        <before>
            <magentoCLI command="config:set customer/create_account/viv_disable_auto_group_assign_default 0" stepKey="setConfigDefaultIsNo"/>
            <comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
            <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin1"/>
        </before>
        <after>
            <actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/>
        </after>

        <actionGroup ref="AdminNavigateNewCustomerActionGroup" stepKey="navigateToNewCustomer"/>

        <actionGroup ref="AdminAssertDefaultValueDisableAutoGroupInCustomerFormActionGroup" stepKey="seeDefaultValueInForm">
            <argument name="isChecked" value="0"/>
        </actionGroup>
    </test>
</tests>
