Skip to content

Commit 461509d

Browse files
committed
MC-41668: State/Province drop down not appear issue
1 parent 613577d commit 461509d

File tree

2 files changed

+55
-3
lines changed

2 files changed

+55
-3
lines changed

app/code/Magento/Customer/view/frontend/templates/form/register.phtml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -355,9 +355,9 @@ script;
355355
"regionInputId": "#region",
356356
"postcodeId": "#zip",
357357
"form": "#form-validate",
358-
"regionJson": {$regionJson},
359-
"defaultRegion": "{$regionId}",
360-
"countriesWithOptionalZip": {$countriesWithOptionalZip}
358+
"regionJson": <?= $regionJson ?>,
359+
"defaultRegion": <?= $regionId ?>,
360+
"countriesWithOptionalZip": <?= $countriesWithOptionalZip ?>
361361
}
362362
}
363363
}
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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+
9+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
11+
<test name="StoreFrontGuestCheckingWithMultishipmentTest">
12+
<annotations>
13+
<features value="Multishipment"/>
14+
<stories value="Multiple Shipping"/>
15+
<title value="Guest can register through multi shipment checkout"/>
16+
<description value="Check that guest can register through multi shipment checkout"/>
17+
<severity value="CRITICAL"/>
18+
<testCaseId value="MC-41679"/>
19+
<useCaseId value="MC-41668"/>
20+
<group value="Multishipment"/>
21+
</annotations>
22+
<before>
23+
<createData stepKey="category" entity="SimpleSubCategory"/>
24+
<createData stepKey="product1" entity="SimpleProduct">
25+
<requiredEntity createDataKey="category"/>
26+
</createData>
27+
<createData stepKey="product2" entity="SimpleProduct">
28+
<requiredEntity createDataKey="category"/>
29+
</createData>
30+
<createData entity="FlatRateShippingMethodConfig" stepKey="enableFlatRateShipping"/>
31+
<actionGroup ref="CliEnableCheckMoneyOrderPaymentMethodActionGroup" stepKey="enableCheckMoneyOrderPaymentMethod"/>
32+
</before>
33+
<after>
34+
<deleteData stepKey="deleteCategory" createDataKey="category"/>
35+
<deleteData stepKey="deleteProduct1" createDataKey="product1"/>
36+
<deleteData stepKey="deleteProduct2" createDataKey="product2"/>
37+
<createData entity="FreeShippinMethodDefault" stepKey="disableFreeShipping"/>
38+
</after>
39+
<amOnPage url="$product1.custom_attributes[url_key]$.html" stepKey="goToProduct1"/>
40+
<actionGroup ref="AddToCartFromStorefrontProductPageActionGroup" stepKey="addToCartFromStorefrontProduct1">
41+
<argument name="productName" value="$product1.name$"/>
42+
</actionGroup>
43+
<amOnPage url="$product2.custom_attributes[url_key]$.html" stepKey="goToProduct2"/>
44+
<actionGroup ref="AddToCartFromStorefrontProductPageActionGroup" stepKey="addToCartFromStorefrontProduct2">
45+
<argument name="productName" value="$product2.name$"/>
46+
</actionGroup>
47+
<actionGroup ref="StorefrontOpenCartFromMinicartActionGroup" stepKey="openCart"/>
48+
<click selector="{{MultishippingSection.checkoutWithMultipleAddresses}}" stepKey="proceedMultishipping"/>
49+
<click selector="{{StorefrontCustomerSignInPopupFormSection.createAnAccount}}" stepKey="clickCreateAccount"/>
50+
<seeElement selector="{{CheckoutShippingSection.region}}" stepKey="seeRegionSelector"/>
51+
</test>
52+
</tests>

0 commit comments

Comments
 (0)