|
| 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="AdminCustomerLabelDisplayOnStoreFront"> |
| 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 | + <!--Delete Customer And Logout--> |
| 27 | + <after> |
| 28 | + <createData entity="createCustomer" stepKey="deleteCustomer"/> |
| 29 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/> |
| 30 | + </after> |
| 31 | + |
| 32 | + <!-- Create New Store --> |
| 33 | + <actionGroup ref="AdminCreateNewStoreGroupActionGroup" stepKey="createStore1"> |
| 34 | + <argument name="website" value="Main Website"/> |
| 35 | + <argument name="storeGroupName" value="{{customStoreGroup.name}}"/> |
| 36 | + <argument name="storeGroupCode" value="{{customStoreGroup.code}}"/> |
| 37 | + </actionGroup> |
| 38 | + <!-- Create Store View --> |
| 39 | + <actionGroup ref="AdminCreateStoreViewActionGroup" stepKey="createStoreViewA"> |
| 40 | + <argument name="StoreGroup" value="customStoreGroup"/> |
| 41 | + <argument name="customStore" value="storeViewData"/> |
| 42 | + </actionGroup> |
| 43 | + <!-- Go to customer address attributes page --> |
| 44 | + <actionGroup ref="AdminNavigateToCustomerAddressAttributesPageActionGroup" stepKey="navigateToCustomerAttributes"/> |
| 45 | + <!-- Open "postcode" attribute --> |
| 46 | + <actionGroup ref="AdminOpenCustomerAddressAttributeByCodeActionGroup" stepKey="openPostCodeAttribute"> |
| 47 | + <argument name="attributeCode" value="postcode"/> |
| 48 | + </actionGroup> |
| 49 | + <!-- Set label values for each store views and save --> |
| 50 | + <click stepKey="clickOnManageLabelTab" selector="{{AdminCustomerAddressAttributeSection.options}}"/> |
| 51 | + <fillField stepKey="fillDefaultStoreView" selector="{{AdminCustomerLastNameAttributeSection.defautView}}" userInput="TestDefaultViewLabel"/> |
| 52 | + <fillField stepKey="fillOtherStoreView" selector="{{AdminCustomerLastNameAttributeSection.secondLastNameInput}}" userInput="CustomStoreViewLabel"/> |
| 53 | + <click stepKey="save" selector="{{CustomerAccountSection.save}}"/> |
| 54 | + <actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache"> |
| 55 | + <argument name="tags" value=""/> |
| 56 | + </actionGroup> |
| 57 | + <!--Log in to Storefront (Main Website Store "Default Store View")--> |
| 58 | + <actionGroup ref="LoginToStorefrontActionGroup" stepKey="storefrontCustomerLogin"> |
| 59 | + <argument name="Customer" value="$$createCustomer$$"/> |
| 60 | + </actionGroup> |
| 61 | + <!--Go to My Account-> Address Book--> |
| 62 | + <actionGroup ref="OpenMyAccountPageActionGroup" stepKey="myAccount"/> |
| 63 | + <!--Assert the label has been changed according store view value--> |
| 64 | + <actionGroup ref="StorefrontOpenNewCustomerAddressFormActionGroup" stepKey="openAddressForm"/> |
| 65 | + <see stepKey="seeZipTitle" selector="{{StorefrontCustomerAddressFormSection.zipTitle}}" userInput="TestDefaultViewLabel"/> |
| 66 | + </test> |
| 67 | +</tests> |
0 commit comments