From f29e07529ac11e8884e43406788072853ec2a171 Mon Sep 17 00:00:00 2001 From: Johnny shultz Date: Wed, 28 May 2025 11:29:22 -0400 Subject: [PATCH 1/3] CASH-494 CASH-494 added experimentOrder fields for ITAC and NoComp --- src/store/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/store/index.js b/src/store/index.js index 8356f35f3..ddb2aab19 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -963,6 +963,8 @@ export const getters = { funnelServiceState: state.order.serviceLocation.state, funnelServiceZipCode: state.order.serviceLocation.zipCode, funnelServiceZipCodeCtu: state.order.serviceLocation.zipCodeCtu, + funnelPolicyIsItac: state.order.policy.isItac ? "TRUE" : "FALSE", + funnelPolicyIsNoComp: state.order.policy.isNoComp ? "TRUE" : "FALSE", funnelProviderNumber: state.order.serviceLocation.provider.providerNumber, funnelParentAccountNumber: state.order.payment.parentAccountNumber, funnelReferralType: state.order.payment.isInsurance ? "INSURANCE" : "CASH QUOTE", From 634713ab982cf1c3978f4b5aab826b43b5306e2e Mon Sep 17 00:00:00 2001 From: Johnny shultz Date: Wed, 28 May 2025 11:43:24 -0400 Subject: [PATCH 2/3] CASH-494 CASH-494 changed TRUE and FALSE to lowercase --- src/store/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/index.js b/src/store/index.js index ddb2aab19..7499a4af9 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -963,8 +963,8 @@ export const getters = { funnelServiceState: state.order.serviceLocation.state, funnelServiceZipCode: state.order.serviceLocation.zipCode, funnelServiceZipCodeCtu: state.order.serviceLocation.zipCodeCtu, - funnelPolicyIsItac: state.order.policy.isItac ? "TRUE" : "FALSE", - funnelPolicyIsNoComp: state.order.policy.isNoComp ? "TRUE" : "FALSE", + funnelPolicyIsItac: state.order.policy.isItac ? "true" : "false", + funnelPolicyIsNoComp: state.order.policy.isNoComp ? "true" : "false", funnelProviderNumber: state.order.serviceLocation.provider.providerNumber, funnelParentAccountNumber: state.order.payment.parentAccountNumber, funnelReferralType: state.order.payment.isInsurance ? "INSURANCE" : "CASH QUOTE", From e6902b3cadbb1259b73b69121999ecf8a9732a9c Mon Sep 17 00:00:00 2001 From: Johnny shultz Date: Wed, 28 May 2025 12:06:47 -0400 Subject: [PATCH 3/3] CASH-494 CASH-494 fixed unit tests --- src/store/store.spec.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/store/store.spec.js b/src/store/store.spec.js index 68c8f6761..cfc442612 100644 --- a/src/store/store.spec.js +++ b/src/store/store.spec.js @@ -3758,6 +3758,8 @@ describe("Getters", () => { funnelServiceState: "OH-IO", funnelServiceZipCode: 43215, funnelParentAccountNumber: "999999", + funnelPolicyIsItac: "false", + funnelPolicyIsNoComp: "false", funnelIsCoverageVerified: true, funnelGlassParts: null, funnelSupportingItems: null, @@ -3809,6 +3811,8 @@ describe("Getters", () => { funnelServiceState: mockStateValues.funnelServiceState, funnelServiceZipCode: mockStateValues.funnelServiceZipCode, funnelParentAccountNumber: mockStateValues.funnelParentAccountNumber, + funnelPolicyIsItac: mockStateValues.funnelPolicyIsItac, + funnelPolicyIsNoComp: mockStateValues.funnelPolicyIsNoComp, funnelIsCoverageVerified: mockStateValues.funnelIsCoverageVerified, funnelOrderPartNumbers: [], funnelOrderPartTypes: [], @@ -3839,6 +3843,8 @@ describe("Getters", () => { funnelServiceState: "OH-IO", funnelServiceZipCode: 43215, funnelParentAccountNumber: "999999", + funnelPolicyIsItac: "false", + funnelPolicyIsNoComp: "false", funnelIsCoverageVerified: true, funnelGlassParts: [], funnelOtherParts: [], @@ -3889,6 +3895,8 @@ describe("Getters", () => { funnelServiceState: mockStateValues.funnelServiceState, funnelServiceZipCode: mockStateValues.funnelServiceZipCode, funnelParentAccountNumber: mockStateValues.funnelParentAccountNumber, + funnelPolicyIsItac: mockStateValues.funnelPolicyIsItac, + funnelPolicyIsNoComp: mockStateValues.funnelPolicyIsNoComp, funnelIsCoverageVerified: mockStateValues.funnelIsCoverageVerified, funnelOrderPartNumbers: [], funnelOrderPartTypes: [], @@ -3919,6 +3927,8 @@ describe("Getters", () => { serviceState: "OH-IO", serviceZipCode: 43215, parentAccountNumber: "999999", + funnelPolicyIsItac: "false", + funnelPolicyIsNoComp: "false", isCoverageVerified: false, glassParts: [ { @@ -3979,6 +3989,8 @@ describe("Getters", () => { funnelServiceState: mockStateValues.serviceState, funnelServiceZipCode: mockStateValues.serviceZipCode, funnelParentAccountNumber: mockStateValues.parentAccountNumber, + funnelPolicyIsItac: mockStateValues.funnelPolicyIsItac, + funnelPolicyIsNoComp: mockStateValues.funnelPolicyIsNoComp, funnelIsCoverageVerified: mockStateValues.isCoverageVerified, funnelOrderPartNumbers: ["WINDSHIELDPARTNUMBER"], funnelOrderPartTypes: ["ADAS, maybe"], @@ -4009,6 +4021,8 @@ describe("Getters", () => { serviceState: "OH-IO", serviceZipCode: 43215, parentAccountNumber: "999999", + funnelPolicyIsItac: "false", + funnelPolicyIsNoComp: "false", isCoverageVerified: false, glassParts: [ { @@ -4084,6 +4098,8 @@ describe("Getters", () => { funnelServiceState: mockStateValues.serviceState, funnelServiceZipCode: mockStateValues.serviceZipCode, funnelParentAccountNumber: mockStateValues.parentAccountNumber, + funnelPolicyIsItac: mockStateValues.funnelPolicyIsItac, + funnelPolicyIsNoComp: mockStateValues.funnelPolicyIsNoComp, funnelIsCoverageVerified: mockStateValues.isCoverageVerified, funnelOrderPartNumbers: ["WINDSHIELDPARTNUMBER"], funnelOrderPartTypes: ["ADAS, maybe"], @@ -4114,6 +4130,8 @@ describe("Getters", () => { serviceState: "OH-IO", serviceZipCode: 43215, parentAccountNumber: "999999", + funnelPolicyIsItac: "false", + funnelPolicyIsNoComp: "false", isCoverageVerified: false, glassParts: [ { @@ -4200,6 +4218,8 @@ describe("Getters", () => { funnelServiceState: mockStateValues.serviceState, funnelServiceZipCode: mockStateValues.serviceZipCode, funnelParentAccountNumber: mockStateValues.parentAccountNumber, + funnelPolicyIsItac: mockStateValues.funnelPolicyIsItac, + funnelPolicyIsNoComp: mockStateValues.funnelPolicyIsNoComp, funnelIsCoverageVerified: mockStateValues.isCoverageVerified, funnelOrderPartNumbers: ["BACKGLASS_PN", "DRIVERGLASS_PN", "PASSENGERGLASS_PN"], funnelOrderPartTypes: [],