Skip to content

Commit df5d991

Browse files
committed
AC-5658:AdminCustomerLabelDisplayOnStoreFront
1 parent f3b8915 commit df5d991

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<!-- Test XML Example -->
9+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
10+
<test name="AdminCustomerLabelDisplayOnStoreFrontTest">
11+
<annotations>
12+
<features value="Store"/>
13+
<stories value="Verify that customer attribute label is displayed according saved values for each store view"/>
14+
<title value="Verify that customer attribute label is displayed according saved values for each store view"/>
15+
<description value="Verify that customer attribute label is displayed according saved values for each store view"/>
16+
<severity value="CRITICAL"/>
17+
<testCaseId value="AC-5658"/>
18+
</annotations>
19+
20+
<!--Create Customer-->
21+
<before>
22+
<createData entity="Simple_US_Customer_CA" stepKey="createCustomer"/>
23+
<actionGroup ref="AdminLoginActionGroup" stepKey="login"/>
24+
</before>
25+
26+
<after>
27+
<deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/>
28+
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
29+
</after>
30+
<!-- Create New Store -->
31+
<actionGroup ref="AdminCreateNewStoreGroupActionGroup" stepKey="createStore1">
32+
<argument name="website" value="Main Website"/>
33+
<argument name="storeGroupName" value="{{customStoreGroup.name}}"/>
34+
<argument name="storeGroupCode" value="{{customStoreGroup.code}}"/>
35+
</actionGroup>
36+
<!-- Create Store View -->
37+
<actionGroup ref="AdminCreateStoreViewActionGroup" stepKey="createStoreViewA">
38+
<argument name="StoreGroup" value="customStoreGroup"/>
39+
<argument name="customStore" value="storeViewData"/>
40+
</actionGroup>
41+
<!-- Go to customer address attributes page -->
42+
<actionGroup ref="AdminNavigateToCustomerAddressAttributesPageActionGroup" stepKey="navigateToCustomerAttributes"/>
43+
<!-- Open "postcode" attribute -->
44+
<actionGroup ref="AdminOpenCustomerAddressAttributeByCodeActionGroup" stepKey="openPostCodeAttribute">
45+
<argument name="attributeCode" value="postcode"/>
46+
</actionGroup>
47+
<!-- Set label values for each store views and save -->
48+
<click stepKey="clickOnManageLabelTab" selector="{{AdminCustomerAddressAttributeSection.options}}"/>
49+
<fillField stepKey="fillDefaultStoreView" selector="{{AdminCustomerLastNameAttributeSection.defautView}}" userInput="TestDefaultViewLabel"/>
50+
<fillField stepKey="fillOtherStoreView" selector="{{AdminCustomerLastNameAttributeSection.secondLastNameInput}}" userInput="CustomStoreViewLabel"/>
51+
<click stepKey="save" selector="{{CustomerAccountSection.save}}"/>
52+
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
53+
<argument name="tags" value=""/>
54+
</actionGroup>
55+
<!--Log in to Storefront (Main Website Store "Default Store View")-->
56+
<actionGroup ref="LoginToStorefrontActionGroup" stepKey="storefrontCustomerLogin">
57+
<argument name="Customer" value="$$createCustomer$$"/>
58+
</actionGroup>
59+
<!--Go to My Account-> Address Book-->
60+
<actionGroup ref="OpenMyAccountPageActionGroup" stepKey="myAccount"/>
61+
<!--Assert the label has been changed according store view value-->
62+
<actionGroup ref="StorefrontOpenNewCustomerAddressFormActionGroup" stepKey="openAddressForm"/>
63+
<see stepKey="seeZipTitle" selector="{{StorefrontCustomerAddressFormSection.zipTitle}}" userInput="TestDefaultViewLabel"/>
64+
</test>
65+
</tests>

0 commit comments

Comments
 (0)