/
AdminCheckDefaultValueDisableAutoGroupChangeIsYesTest.xml
38 lines (35 loc) · 1.8 KB
/
AdminCheckDefaultValueDisableAutoGroupChangeIsYesTest.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?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="AdminCheckDefaultValueDisableAutoGroupChangeIsYesTest">
<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 Yes"/>
<description value="Check settings Default Value for Disable Automatic Group Changes Based on VAT ID is Yes"/>
<severity value="MAJOR"/>
<group value="customer"/>
<group value="create"/>
</annotations>
<before>
<magentoCLI command="config:set customer/create_account/viv_disable_auto_group_assign_default 1" stepKey="setConfigDefaultIsYes"/>
<magentoCLI command="cache:flush" stepKey="flushCache"/>
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin1"/>
</before>
<after>
<magentoCLI command="config:set customer/create_account/viv_disable_auto_group_assign_default 0" stepKey="setConfigDefaultIsNo"/>
<magentoCLI command="cache:flush" stepKey="flushCache"/>
<actionGroup ref="logout" stepKey="adminLogout"/>
</after>
<actionGroup ref="AdminNavigateNewCustomerActionGroup" stepKey="navigateToNewCustomer"/>
<actionGroup ref="AdminAssertDefaultValueDisableAutoGroupInCustomerFormActionGroup" stepKey="seeDefaultValueInForm">
<argument name="isChecked" value="1"/>
</actionGroup>
</test>
</tests>