File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
view/frontend/web/js/model Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 102
102
</arguments >
103
103
<conditionalClick stepKey =" openShippingDetails" selector =" {{CheckoutCartSummarySection.shippingHeading}}" dependentSelector =" {{CheckoutCartSummarySection.country}}" visible =" false" />
104
104
<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 }}" />
106
106
<fillField stepKey =" fillZip" selector =" {{CheckoutCartSummarySection.postcode}}" userInput =" {{taxCode.zip}}" />
107
107
<waitForPageLoad stepKey =" waitForFormUpdate" />
108
108
</actionGroup >
Original file line number Diff line number Diff line change @@ -17,17 +17,23 @@ define([
17
17
*/
18
18
return function ( addressData ) {
19
19
var identifier = Date . now ( ) ,
20
+ countryId = addressData [ 'country_id' ] || addressData . countryId || window . checkoutConfig . defaultCountryId ,
20
21
regionId ;
21
22
22
23
if ( addressData . region && addressData . region [ 'region_id' ] ) {
23
24
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
+ ) {
25
31
regionId = window . checkoutConfig . defaultRegionId || undefined ;
26
32
}
27
33
28
34
return {
29
35
email : addressData . email ,
30
- countryId : addressData [ 'country_id' ] || addressData . countryId || window . checkoutConfig . defaultCountryId ,
36
+ countryId : countryId ,
31
37
regionId : regionId || addressData . regionId ,
32
38
regionCode : addressData . region ? addressData . region [ 'region_code' ] : null ,
33
39
region : addressData . region ? addressData . region . region : null ,
Original file line number Diff line number Diff line change 248
248
<severity value =" CRITICAL" />
249
249
<testCaseId value =" MC-297" />
250
250
<group value =" Tax" />
251
- <skip >
252
- <issueId value =" MAGETWO-90539" />
253
- </skip >
254
251
</annotations >
255
252
<before >
256
253
<actionGroup ref =" LoginAsAdmin" stepKey =" loginAsAdmin" />
357
354
<severity value =" CRITICAL" />
358
355
<testCaseId value =" MC-298" />
359
356
<group value =" Tax" />
360
- <skip >
361
- <issueId value =" MAGETWO-90539" />
362
- </skip >
363
357
</annotations >
364
358
<before >
365
359
<actionGroup ref =" LoginAsAdmin" stepKey =" loginAsAdmin" />
You can’t perform that action at this time.
0 commit comments