Skip to content

Commit 1f970d6

Browse files
committed
Cover changes with mftf test
1 parent 75faa02 commit 1f970d6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,13 @@
4747
<actionGroup ref="VerifyCustomerShippingAddressWithState" stepKey="verifyShippingAddress">
4848
<argument name="address" value="updateCustomerBelgiumAddress"/>
4949
</actionGroup>
50+
51+
<!-- Verify country Belgium can be saved without state as state not required -->
52+
<actionGroup ref="StoreFrontClickEditDefaultShippingAddressActionGroup" stepKey="clickOnDefaultShippingAddress"/>
53+
<selectOption selector="{{StorefrontCustomerAddressFormSection.country}}" userInput="Belgium" stepKey="selectCountry"/>
54+
<selectOption selector="{{StorefrontCustomerAddressFormSection.state}}" userInput="Please select a region, state or province." stepKey="selectState"/>
55+
<actionGroup ref="AdminSaveCustomerAddressActionGroup" stepKey="saveAddress"/>
56+
<see selector="{{StorefrontCustomerAddressesSection.defaultShippingAddress}}" userInput="Belgium" stepKey="seeAssertCustomerDefaultShippingAddressCountry"/>
57+
5058
</test>
5159
</tests>

0 commit comments

Comments
 (0)