Skip to content

Commit 3862933

Browse files
committed
ACP2E-1609: Region Field is not getting blank after selecting any region for a country
1 parent 2e5a0a6 commit 3862933

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,4 +493,11 @@
493493
<data key="postcode">5555</data>
494494
<data key="telephone">555-55-555-55</data>
495495
</entity>
496+
<entity name="Finland_Address" type="address">
497+
<data key="state">Ahvenanmaa</data>
498+
<data key="country_id">FI</data>
499+
<data key="country">Finland</data>
500+
<data key="default_shipping">true</data>
501+
<data key="default_billing">true</data>
502+
</entity>
496503
</entities>

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@
4949

5050
<!-- Select Country = Canada And Region =Saskatchewan , Click on Save Button -->
5151
<click selector="{{AdminCustomerAddressesSection.country}}" stepKey="clickCountryToOpenListOfCountries"/>
52-
<click selector="{{AdminCustomerAddressesSection.countryId(Canada_Address.country_id)}}" stepKey="fillCountry"/>
52+
<click selector="{{AdminCustomerAddressesSection.countryId(Finland_Address.country_id)}}" stepKey="fillCountry"/>
5353
<click selector="{{AdminCustomerAddressesSection.state}}" stepKey="clickRegionToOpenListOfRegions"/>
54-
<click selector="{{AdminCustomerAddressesSection.regionId(Canada_Address.state)}}" stepKey="fillRegion"/>
54+
<click selector="{{AdminCustomerAddressesSection.regionId(Finland_Address.state)}}" stepKey="fillRegion"/>
5555
<click selector="{{AdminCustomerAddressesSection.saveAddress}}" stepKey="clickSaveCustomer"/>
5656

5757
<!--Verify state name in address details section-->
58-
<see userInput="{{Canada_Address.state}}" selector="{{AdminCustomerAddressesSection.regionId(Canada_Address.state)}}" stepKey="seeStateInAddress"/>
58+
<see userInput="{{Finland_Address.state}}" selector="{{AdminCustomerAddressesSection.regionId(Finland_Address.state)}}" stepKey="seeStateInAddress"/>
5959

6060
<!-- Click on edit link for default billing address , deselect region and click on save button-->
6161
<click selector="{{AdminCustomerAddressesDefaultBillingSection.editButton}}" stepKey="clickEditDefaultBillingAddressAgain"/>
@@ -69,6 +69,6 @@
6969
</actionGroup>
7070

7171
<!--Verify state name not visible under address details section-->
72-
<dontSee userInput="{{Canada_Address.state}}" selector="{{AdminCustomerAddressesDefaultBillingSection.addressDetails}}" stepKey="dontSeeStateInAddress"/>
72+
<dontSee userInput="{{Finland_Address.state}}" selector="{{AdminCustomerAddressesDefaultBillingSection.addressDetails}}" stepKey="dontSeeStateInAddress"/>
7373
</test>
7474
</tests>

0 commit comments

Comments
 (0)