File tree Expand file tree Collapse file tree 4 files changed +12
-0
lines changed
Checkout/view/frontend/web/js/model Expand file tree Collapse file tree 4 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ define([
22
22
23
23
if ( addressData . region && addressData . region [ 'region_id' ] ) {
24
24
regionId = addressData . region [ 'region_id' ] ;
25
+ } else if ( ! addressData [ 'region_id' ] ) {
26
+ regionId = undefined ;
25
27
} else if (
26
28
/* eslint-disable */
27
29
addressData [ 'country_id' ] && addressData [ 'country_id' ] == window . checkoutConfig . defaultCountryId ||
Original file line number Diff line number Diff line change 84
84
<actionGroup ref =" clickViewAndEditCartFromMiniCart" stepKey =" goToShoppingCartFromMinicart" />
85
85
<!-- Step 4: Open Estimate Shipping and Tax section -->
86
86
<conditionalClick selector =" {{CheckoutCartSummarySection.estimateShippingAndTax}}" dependentSelector =" {{CheckoutCartSummarySection.country}}" visible =" false" stepKey =" expandEstimateShippingandTax" />
87
+ <selectOption selector =" {{CheckoutCartSummarySection.country}}" userInput =" United States" stepKey =" selectUSCountry" />
88
+ <selectOption selector =" {{CheckoutCartSummarySection.stateProvince}}" userInput =" California" stepKey =" selectCaliforniaRegion" />
87
89
<see selector =" {{CheckoutCartSummarySection.amountFPT}}" userInput =" $10" stepKey =" checkFPTAmountCA" />
88
90
<see selector =" {{CheckoutCartSummarySection.taxAmount}}" userInput =" $0.83" stepKey =" checkTaxAmountCA" />
89
91
<scrollTo selector =" {{CheckoutCartSummarySection.taxSummary}}" stepKey =" scrollToTaxSummary" />
Original file line number Diff line number Diff line change 56
56
<actionGroup ref =" clickViewAndEditCartFromMiniCart" stepKey =" goToShoppingCartFromMinicart" />
57
57
<!-- Step 4: Open Estimate Shipping and Tax section -->
58
58
<conditionalClick selector =" {{CheckoutCartSummarySection.estimateShippingAndTax}}" dependentSelector =" {{CheckoutCartSummarySection.country}}" visible =" false" stepKey =" expandEstimateShippingandTax" />
59
+ <selectOption selector =" {{CheckoutCartSummarySection.country}}" userInput =" United States" stepKey =" selectUSCountry" />
60
+ <selectOption selector =" {{CheckoutCartSummarySection.stateProvince}}" userInput =" California" stepKey =" selectCaliforniaRegion" />
59
61
<scrollTo selector =" {{CheckoutCartSummarySection.taxSummary}}" stepKey =" scrollToTaxSummary" />
60
62
<see selector =" {{CheckoutCartSummarySection.taxAmount}}" userInput =" $3.30" stepKey =" checkTaxAmountCA" />
61
63
<click selector =" {{CheckoutCartSummarySection.taxSummary}}" stepKey =" taxSummary" />
Original file line number Diff line number Diff line change 320
320
<waitForLoadingMaskToDisappear stepKey =" waitForLoadingMask" />
321
321
322
322
<waitForElementVisible stepKey =" waitForOverviewVisible" selector =" {{CheckoutPaymentSection.tax}}" />
323
+ <conditionalClick selector =" {{CheckoutCartSummarySection.estimateShippingAndTax}}" dependentSelector =" {{CheckoutCartSummarySection.country}}" visible =" false" stepKey =" expandEstimateShippingandTax" />
324
+ <selectOption selector =" {{CheckoutCartSummarySection.country}}" userInput =" United States" stepKey =" selectUSCountry" />
325
+ <selectOption selector =" {{CheckoutCartSummarySection.stateProvince}}" userInput =" California" stepKey =" selectCaliforniaRegion" />
323
326
<see stepKey =" seeTax3" selector =" {{CheckoutPaymentSection.tax}}" userInput =" $10.15" />
324
327
<click stepKey =" expandTax2" selector =" {{CheckoutPaymentSection.tax}}" />
325
328
<see stepKey =" seeTaxPercent2" selector =" {{CheckoutPaymentSection.taxPercentage}}" userInput =" ({{SimpleTaxCA.rate}}%)" />
428
431
429
432
<!-- Assert that taxes are applied correctly for CA -->
430
433
<waitForElementVisible stepKey =" waitForOverviewVisible" selector =" {{CheckoutPaymentSection.tax}}" />
434
+ <conditionalClick selector =" {{CheckoutCartSummarySection.estimateShippingAndTax}}" dependentSelector =" {{CheckoutCartSummarySection.country}}" visible =" false" stepKey =" expandEstimateShippingandTax" />
435
+ <selectOption selector =" {{CheckoutCartSummarySection.country}}" userInput =" United States" stepKey =" selectUSCountry" />
436
+ <selectOption selector =" {{CheckoutCartSummarySection.stateProvince}}" userInput =" California" stepKey =" selectCaliforniaRegion" />
431
437
<see stepKey =" seeTax3" selector =" {{CheckoutPaymentSection.tax}}" userInput =" $8.25" />
432
438
<click stepKey =" expandTax2" selector =" {{CheckoutPaymentSection.tax}}" />
433
439
<see stepKey =" seeTaxPercent2" selector =" {{CheckoutPaymentSection.taxPercentage}}" userInput =" ({{SimpleTaxCA.rate}}%)" />
You can’t perform that action at this time.
0 commit comments