Skip to content

Commit a448dcd

Browse files
author
Joan He
committed
Merge branch 'MAGETWO-90539' into MAGETWO-90531-WYSIWYG-special-char-Toolbar-Configuration
2 parents ba0638c + 1af95de commit a448dcd

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

app/code/Magento/Checkout/Test/Mftf/ActionGroup/StorefrontProductCartActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
</arguments>
103103
<conditionalClick stepKey="openShippingDetails" selector="{{CheckoutCartSummarySection.shippingHeading}}" dependentSelector="{{CheckoutCartSummarySection.country}}" visible="false"/>
104104
<selectOption stepKey="selectCountry" selector="{{CheckoutCartSummarySection.country}}" userInput="{{taxCode.country}}"/>
105-
<selectOption stepKey="selectStateProvince" selector="{{CheckoutCartSummarySection.country}}" userInput="{{taxCode.country}}"/>
105+
<selectOption stepKey="selectStateProvince" selector="{{CheckoutCartSummarySection.stateProvince}}" userInput="{{taxCode.state}}"/>
106106
<fillField stepKey="fillZip" selector="{{CheckoutCartSummarySection.postcode}}" userInput="{{taxCode.zip}}"/>
107107
<waitForPageLoad stepKey="waitForFormUpdate"/>
108108
</actionGroup>

app/code/Magento/Checkout/view/frontend/web/js/model/new-customer-address.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,23 @@ define([
1717
*/
1818
return function (addressData) {
1919
var identifier = Date.now(),
20+
countryId = addressData['country_id'] || addressData.countryId || window.checkoutConfig.defaultCountryId,
2021
regionId;
2122

2223
if (addressData.region && addressData.region['region_id']) {
2324
regionId = addressData.region['region_id'];
24-
} else if (addressData['country_id'] && addressData['country_id'] == window.checkoutConfig.defaultCountryId) { //eslint-disable-line
25+
} else if (
26+
/* eslint-disable */
27+
addressData['country_id'] && addressData['country_id'] == window.checkoutConfig.defaultCountryId ||
28+
!addressData['country_id'] && countryId == window.checkoutConfig.defaultCountryId
29+
/* eslint-enable */
30+
) {
2531
regionId = window.checkoutConfig.defaultRegionId || undefined;
2632
}
2733

2834
return {
2935
email: addressData.email,
30-
countryId: addressData['country_id'] || addressData.countryId || window.checkoutConfig.defaultCountryId,
36+
countryId: countryId,
3137
regionId: regionId || addressData.regionId,
3238
regionCode: addressData.region ? addressData.region['region_code'] : null,
3339
region: addressData.region ? addressData.region.region : null,

app/code/Magento/Tax/Test/Mftf/Test/StorefrontTaxQuoteCartTest.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,6 @@
248248
<severity value="CRITICAL"/>
249249
<testCaseId value="MC-297"/>
250250
<group value="Tax"/>
251-
<skip>
252-
<issueId value="MAGETWO-90539"/>
253-
</skip>
254251
</annotations>
255252
<before>
256253
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
@@ -357,9 +354,6 @@
357354
<severity value="CRITICAL"/>
358355
<testCaseId value="MC-298"/>
359356
<group value="Tax"/>
360-
<skip>
361-
<issueId value="MAGETWO-90539"/>
362-
</skip>
363357
</annotations>
364358
<before>
365359
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>

0 commit comments

Comments
 (0)