-
Notifications
You must be signed in to change notification settings - Fork 9.3k
/
AdminCreateCustomStoreViewStatusEnabledVerifyBackendAndFrontendTest.xml
69 lines (63 loc) · 3.7 KB
/
AdminCreateCustomStoreViewStatusEnabledVerifyBackendAndFrontendTest.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?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="AdminCreateCustomStoreViewStatusEnabledVerifyBackendAndFrontendTest">
<annotations>
<stories value="Create Store View"/>
<title value="Create Custom Store View Status Enabled and Verify Backend and Frontend"/>
<description value="Test log in to Stores and Create Custom Store View Status Enabled and Verify Backend and Frontend Test"/>
<testCaseId value="MC-14306"/>
<severity value="CRITICAL"/>
<group value="store"/>
<group value="mtf_migrated"/>
</annotations>
<before>
<actionGroup ref = "LoginAsAdmin" stepKey="loginAsAdmin"/>
<!-- Create store -->
<actionGroup ref="AdminCreateNewStoreGroupActionGroup" stepKey="createStore">
<argument name="website" value="{{_defaultWebsite.name}}"/>
<argument name="storeGroupName" value="{{customStore.name}}"/>
<argument name="storeGroupCode" value="{{customStore.code}}"/>
</actionGroup>
</before>
<after>
<actionGroup ref="DeleteCustomStoreActionGroup" stepKey="deleteStore">
<argument name="storeGroupName" value="customStore.name"/>
</actionGroup>
<actionGroup ref="logout" stepKey="logout"/>
</after>
<!--Create custom store view-->
<actionGroup ref="AdminCreateStoreViewActionGroup" stepKey="createStoreView">
<argument name="StoreGroup" value="customStore"/>
<argument name="customStore" value="storeViewData"/>
</actionGroup>
<!--Save the above store view and verify AssertStoreViewSuccessSaveMessage-->
<actionGroup ref="AdminCreateStoreViewActionSaveGroup" stepKey="verifyAssertStoreViewSuccessSaveMessage"/>
<!--Search store view(from above step) in grid and verify AssertStoreInGrid-->
<actionGroup ref="AssertStoreViewInGridActionGroup" stepKey="searchStoreViewInGrid">
<argument name="storeViewName" value="{{storeViewData.name}}"/>
</actionGroup>
<!--Go to store view form page and verify AssertStoreForm-->
<actionGroup ref="AssertStoreViewFormActionGroup" stepKey="verifyStoreViewForm">
<argument name="storeDropdown" value="{{customStore.name}}"/>
<argument name="storeViewName" value="{{storeViewData.name}}"/>
<argument name="storeViewCode" value="{{storeViewData.code}}"/>
<argument name="status" value="Enabled"/>
</actionGroup>
<!--Go to store configuration page and verify AssertStoreBackend-->
<actionGroup ref="AssertStoreConfigurationBackendActionGroup" stepKey="verifyValuesOnStoreBackend">
<argument name="website" value="{{_defaultWebsite.name}}"/>
<argument name="customStore" value="{{customStore.name}}"/>
<argument name="storeView1" value="{{storeViewData.name}}"/>
</actionGroup>
<!--Go to storefront and verify AssertStoreFrontend-->
<actionGroup ref="AssertStorefrontStoreVisibleInFooterActionGroup" stepKey="verifyValuesOnStoreFrontend">
<argument name="customStore" value="{{customStore.name}}"/>
</actionGroup>
</test>
</tests>