diff --git a/src/iss-components/cart-dropdown/cart-dropdown.spec.js b/src/iss-components/cart-dropdown/cart-dropdown.spec.js index 43a354d2..5a850fb8 100644 --- a/src/iss-components/cart-dropdown/cart-dropdown.spec.js +++ b/src/iss-components/cart-dropdown/cart-dropdown.spec.js @@ -475,7 +475,9 @@ describe('cart-dropdown component', () => { // Arrange const storeData = { order: { - policyLookupSuccessful: true, + policy: { + policyLookupSuccessful: true + }, currentDeductible: 250, lineItems: { glassParts: null, @@ -504,7 +506,9 @@ describe('cart-dropdown component', () => { // Arrange const storeData = { order: { - policyLookupSuccessful: true, + policy: { + policyLookupSuccessful: true + }, currentDeductible: 250, lineItems: { glassParts: [ @@ -540,7 +544,9 @@ describe('cart-dropdown component', () => { // Arrange const storeData = { order: { - policyLookupSuccessful: true, + policy: { + policyLookupSuccessful: true + }, currentDeductible: 250, lineItems: { glassParts: [{ partType: 'mock', salesTax: 10 }], @@ -575,7 +581,9 @@ describe('cart-dropdown component', () => { // Arrange const storeData = { order: { - policyLookupSuccessful: true, + policy: { + policyLookupSuccessful: true + }, currentDeductible: 250, lineItems: { glassParts: [{ partType: 'mock', salesTax: 10 }], @@ -606,7 +614,9 @@ describe('cart-dropdown component', () => { // Arrange const storeData = { order: { - policyLookupSuccessful: true, + policy: { + policyLookupSuccessful: true + }, currentDeductible: 250, lineItems: { glassParts: [{ partType: 'mock', salesTax: 10, sellingPrice: 150 }], @@ -642,7 +652,9 @@ describe('cart-dropdown component', () => { // Arrange const storeData = { order: { - policyLookupSuccessful: true, + policy: { + policyLookupSuccessful: true + }, currentDeductible: 250, lineItems: { glassParts: [{ partType: 'mock', salesTax: 10, sellingPrice: 100 }], @@ -677,7 +689,6 @@ describe('cart-dropdown component', () => { // Arrange const storeData = { order: { - policyLookupSuccessful: true, currentDeductible: 0, lineItems: { glassParts: [{ partType: 'mock', salesTax: 10, sellingPrice: 100 }], @@ -689,7 +700,8 @@ describe('cart-dropdown component', () => { insuranceCoverage: { isVerified: true } }, policy: { - isITAC: true + isITAC: true, + policyLookupSuccessful: true } }, issConfig: { @@ -709,7 +721,6 @@ describe('cart-dropdown component', () => { // Arrange const storeData = { order: { - policyLookupSuccessful: true, currentDeductible: 0, lineItems: { glassParts: [{ partType: 'mock', salesTax: 10, sellingPrice: 100 }], @@ -721,7 +732,8 @@ describe('cart-dropdown component', () => { insuranceCoverage: { isVerified: true } }, policy: { - noCoverage: true + noCoverage: true, + policyLookupSuccessful: true } }, issConfig: { @@ -1769,10 +1781,10 @@ describe('cart-dropdown component', () => { order: { policy: { isITAC: false, - isNoComp: false + isNoComp: false, + policyLookupSuccessful: true }, - currentDeductible: 321, - policyLookupSuccessful: true + currentDeductible: 321 } }; const { wrapper } = getMountedComponent(storeData); diff --git a/src/layouts/payment-method/payment-method.spec.js b/src/layouts/payment-method/payment-method.spec.js index 5d1c4eaf..bf7cc1ca 100644 --- a/src/layouts/payment-method/payment-method.spec.js +++ b/src/layouts/payment-method/payment-method.spec.js @@ -135,15 +135,15 @@ describe('payment-method.vue', () => { order: { policy: { isITAC: false, - noCoverage: false + noCoverage: false, + policyLookupSuccessful: true }, payment: { insuranceCoverage: { isVerified: true } }, - currentDeductible: 123, - policyLookupSuccessful: true + currentDeductible: 123 }, issConfig: { isClaimRegistrationRequired: true, @@ -162,7 +162,7 @@ describe('payment-method.vue', () => { }); test('returns true when policyLookupSuccessful false', () => { // Arrange - store.order.policyLookupSuccessful = false; + store.order.policy.policyLookupSuccessful = false; const wrapper = setupMocks({}, store, mixin); // Act diff --git a/src/store/store.spec.js b/src/store/store.spec.js index c08b9dcf..c575b1fa 100644 --- a/src/store/store.spec.js +++ b/src/store/store.spec.js @@ -1471,13 +1471,13 @@ describe('Store', () => { store.order.policy.noCoverage = false; store.order.payment.insuranceCoverage.isVerified = true; store.order.currentDeductible = 123; - store.order.policyLookupSuccessful = true; + store.order.policy.policyLookupSuccessful = true; store.issConfig.isClaimRegistrationRequired = true; store.issConfig.enableNoCompQuote = true; }); it('returns true when policyLookupSuccessful false', () => { // Arrange - store.order.policyLookupSuccessful = false; + store.order.policy.policyLookupSuccessful = false; // Act const result = store.isUnverified;