Skip to content

Commit f2c323a

Browse files
committed
MAGETWO-99302: Edit customer State and Province is duplicated in the drop down
1 parent 1e71065 commit f2c323a

File tree

4 files changed

+5
-28
lines changed

4 files changed

+5
-28
lines changed

app/code/Magento/Customer/Test/Mftf/ActionGroup/AdminCreateCustomerActionGroup.xml

Lines changed: 0 additions & 22 deletions
This file was deleted.

app/code/Magento/Customer/Test/Mftf/ActionGroup/AdminCreateCustomerWithWebsiteAndStoreViewActionGroup.xml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,13 @@
4646
<actionGroup name="AdminCreateCustomerWithWebSiteAndGroup">
4747
<arguments>
4848
<argument name="customerData" defaultValue="Simple_US_Customer"/>
49-
<argument name="website" type="string" defaultValue="customWebsite"/>
50-
<argument name="storeView" type="string" defaultValue="customStore"/>
49+
<argument name="website" type="string" defaultValue="{{_defaultWebsite.name}}"/>
50+
<argument name="storeView" type="string" defaultValue="{{_defaultStore.name}}"/>
5151
</arguments>
5252
<amOnPage url="{{AdminCustomerPage.url}}" stepKey="goToCustomersPage"/>
5353
<click stepKey="addNewCustomer" selector="{{AdminCustomerGridMainActionsSection.addNewCustomer}}"/>
5454
<selectOption stepKey="selectWebSite" selector="{{AdminCustomerAccountInformationSection.associateToWebsite}}" userInput="{{website}}"/>
55-
<click selector="{{AdminCustomerAccountInformationSection.group}}" stepKey="ClickToExpandGroup"/>
56-
<waitForElement selector="{{AdminProductFormAdvancedPricingSection.productTierPriceGroupOrCatalogOption('Default (General)')}}" stepKey="waitForCustomerGroupExpand"/>
57-
<click selector="{{AdminCustomerAccountInformationSection.groupValue('Default (General)')}}" after="waitForCustomerGroupExpand" stepKey="ClickToSelectGroup"/>
55+
<selectOption selector="{{AdminCustomerAccountInformationSection.group}}" userInput="{{customerGroup.group}}" stepKey="selectCustomerGroup"/>
5856
<fillField stepKey="FillFirstName" selector="{{AdminCustomerAccountInformationSection.firstName}}" userInput="{{customerData.firstname}}"/>
5957
<fillField stepKey="FillLastName" selector="{{AdminCustomerAccountInformationSection.lastName}}" userInput="{{customerData.lastname}}"/>
6058
<fillField stepKey="FillEmail" selector="{{AdminCustomerAccountInformationSection.email}}" userInput="{{customerData.email}}"/>

app/code/Magento/Customer/Test/Mftf/Data/CustomerData.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
<data key="password">pwdTest123!</data>
4545
<data key="store_id">0</data>
4646
<data key="website_id">0</data>
47+
<data key="group">General</data>
4748
<requiredEntity type="address">US_Address_TX</requiredEntity>
4849
</entity>
4950
<entity name="SimpleUsCustomerWithNewCustomerGroup" type="customer">

app/code/Magento/Customer/Test/Mftf/Test/AdminVerifyCustomerAddressStateContainValuesOnceTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<seeNumberOfElements userInput="1" selector="{{AdminCustomerAddressesSection.regionId(US_Address_NY.state)}}" stepKey="seeOnlyOneRegionInSelectStateForFirstCustomer"/>
5353

5454
<!--Go to Customers > All customers, Click Add new Customers, fill all necessary fields, Save-->
55-
<actionGroup ref="AdminCreateCustomerWithoutAddressActionGroup" stepKey="createSimpleUSCustomerWithoutAddress"/>
55+
<actionGroup ref="AdminCreateCustomerWithWebSiteAndGroup" stepKey="createSimpleUSCustomerWithoutAddress"/>
5656

5757
<!--Select new created customer, Click Edit mode-->
5858
<actionGroup ref="OpenEditCustomerFromAdminActionGroup" stepKey="openEditCustomerPageWithoutAddresses">

0 commit comments

Comments
 (0)