From 4345dff900a51fb7328b42d74940dc4147b551f8 Mon Sep 17 00:00:00 2001 From: Bill Richardson Date: Thu, 25 Jun 2026 15:31:12 -0400 Subject: [PATCH] test updates --- .../__snapshots__/bailout-page.spec.js.snap | 1 + src/layouts/vin-lookup/vin-lookup.spec.js | 14 ++++++++++++++ src/layouts/vin-lookup/vin-lookup.vue | 2 -- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/layouts/bailout-page/__snapshots__/bailout-page.spec.js.snap b/src/layouts/bailout-page/__snapshots__/bailout-page.spec.js.snap index b191b402..52ff87d6 100644 --- a/src/layouts/bailout-page/__snapshots__/bailout-page.spec.js.snap +++ b/src/layouts/bailout-page/__snapshots__/bailout-page.spec.js.snap @@ -22,6 +22,7 @@ Object { "disclaimerText": "DisclaimerWidget", "noTpa": "ContentGroupNoTPAWidget", "notSeeingPreferredShop": "ContentGroupNotSeeingPreferredShop", + "ymmNotFound": "YMMNotFoundWidget", }, } `; diff --git a/src/layouts/vin-lookup/vin-lookup.spec.js b/src/layouts/vin-lookup/vin-lookup.spec.js index 5e82c2f8..820d2820 100644 --- a/src/layouts/vin-lookup/vin-lookup.spec.js +++ b/src/layouts/vin-lookup/vin-lookup.spec.js @@ -50,6 +50,10 @@ const getPartsOrQuestions = { methodName: 'getPartsOrQuestions', mockResponse: null }; +const getPartsOrQuestionsVinRequired = { + methodName: 'getPartsOrQuestionsVinRequired', + mockResponse: null +}; const vehicleWithPartQuestionsMockResponse = { data: { @@ -372,6 +376,8 @@ describe('vin-lookup.vue', () => { .mockResolvedValue(lookupVehicleByVin.mockResponse); jest.spyOn(vehicleQuestionsMixin.methods, getPartsOrQuestions.methodName) .mockResolvedValue(getPartsOrQuestions.mockResponse); + jest.spyOn(vehicleQuestionsMixin.methods, getPartsOrQuestionsVinRequired.methodName) + .mockResolvedValue(getPartsOrQuestionsVinRequired.mockResponse); const { container } = render(VinLookupComponent, mountOptions); @@ -403,6 +409,8 @@ describe('vin-lookup.vue', () => { .mockResolvedValue(lookupVehicleByVin.mockResponse); jest.spyOn(vehicleQuestionsMixin.methods, getPartsOrQuestions.methodName) .mockResolvedValue(getPartsOrQuestions.mockResponse); + jest.spyOn(vehicleQuestionsMixin.methods, getPartsOrQuestionsVinRequired.methodName) + .mockResolvedValue(getPartsOrQuestionsVinRequired.mockResponse); const { container } = render(VinLookupComponent, mountOptions); @@ -436,6 +444,8 @@ describe('vin-lookup.vue', () => { .mockResolvedValue(lookupVehicleByVin.mockResponse); jest.spyOn(vehicleQuestionsMixin.methods, getPartsOrQuestions.methodName) .mockResolvedValue(getPartsOrQuestions.mockResponse); + jest.spyOn(vehicleQuestionsMixin.methods, getPartsOrQuestionsVinRequired.methodName) + .mockResolvedValue(getPartsOrQuestionsVinRequired.mockResponse); store.getCapabilityQuestions.mockResolvedValueOnce({ data: [] }); const { container } = render(VinLookupComponent, mountOptions); @@ -469,6 +479,8 @@ describe('vin-lookup.vue', () => { .mockResolvedValue(lookupVehicleByVin.mockResponse); jest.spyOn(vehicleQuestionsMixin.methods, getPartsOrQuestions.methodName) .mockResolvedValue(getPartsOrQuestions.mockResponse); + jest.spyOn(vehicleQuestionsMixin.methods, getPartsOrQuestionsVinRequired.methodName) + .mockResolvedValue(getPartsOrQuestionsVinRequired.mockResponse); const { container } = render(VinLookupComponent, mountOptions); @@ -505,6 +517,8 @@ describe('vin-lookup.vue', () => { .mockResolvedValue(lookupVehicleByVin.mockResponse); jest.spyOn(vehicleQuestionsMixin.methods, getPartsOrQuestions.methodName) .mockResolvedValue(getPartsOrQuestions.mockResponse); + jest.spyOn(vehicleQuestionsMixin.methods, getPartsOrQuestionsVinRequired.methodName) + .mockResolvedValue(getPartsOrQuestionsVinRequired.mockResponse); const { container } = render(VinLookupComponent, mountOptions); diff --git a/src/layouts/vin-lookup/vin-lookup.vue b/src/layouts/vin-lookup/vin-lookup.vue index de36af0f..b22381f7 100644 --- a/src/layouts/vin-lookup/vin-lookup.vue +++ b/src/layouts/vin-lookup/vin-lookup.vue @@ -176,8 +176,6 @@ export default { this.$refs.siteFooter.enableForwardAction(); showIssLoadingModal(true); - this.mainStore.order.vehicle.vinRequired = true; // have to find out where this is reset - this.needToLookupVehicle = true; // have to find out where this is reset if (this.mainStore.order.vehicle.vinRequired) { this.mainStore.setBailout(bailoutMessage.YMMNotFound()); return this.$router.navigate(