test updates
This commit is contained in:
parent
a80d46a5f6
commit
4345dff900
3 changed files with 15 additions and 2 deletions
|
|
@ -22,6 +22,7 @@ Object {
|
||||||
"disclaimerText": "DisclaimerWidget",
|
"disclaimerText": "DisclaimerWidget",
|
||||||
"noTpa": "ContentGroupNoTPAWidget",
|
"noTpa": "ContentGroupNoTPAWidget",
|
||||||
"notSeeingPreferredShop": "ContentGroupNotSeeingPreferredShop",
|
"notSeeingPreferredShop": "ContentGroupNotSeeingPreferredShop",
|
||||||
|
"ymmNotFound": "YMMNotFoundWidget",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,10 @@ const getPartsOrQuestions = {
|
||||||
methodName: 'getPartsOrQuestions',
|
methodName: 'getPartsOrQuestions',
|
||||||
mockResponse: null
|
mockResponse: null
|
||||||
};
|
};
|
||||||
|
const getPartsOrQuestionsVinRequired = {
|
||||||
|
methodName: 'getPartsOrQuestionsVinRequired',
|
||||||
|
mockResponse: null
|
||||||
|
};
|
||||||
|
|
||||||
const vehicleWithPartQuestionsMockResponse = {
|
const vehicleWithPartQuestionsMockResponse = {
|
||||||
data: {
|
data: {
|
||||||
|
|
@ -372,6 +376,8 @@ describe('vin-lookup.vue', () => {
|
||||||
.mockResolvedValue(lookupVehicleByVin.mockResponse);
|
.mockResolvedValue(lookupVehicleByVin.mockResponse);
|
||||||
jest.spyOn(vehicleQuestionsMixin.methods, getPartsOrQuestions.methodName)
|
jest.spyOn(vehicleQuestionsMixin.methods, getPartsOrQuestions.methodName)
|
||||||
.mockResolvedValue(getPartsOrQuestions.mockResponse);
|
.mockResolvedValue(getPartsOrQuestions.mockResponse);
|
||||||
|
jest.spyOn(vehicleQuestionsMixin.methods, getPartsOrQuestionsVinRequired.methodName)
|
||||||
|
.mockResolvedValue(getPartsOrQuestionsVinRequired.mockResponse);
|
||||||
|
|
||||||
const { container } = render(VinLookupComponent, mountOptions);
|
const { container } = render(VinLookupComponent, mountOptions);
|
||||||
|
|
||||||
|
|
@ -403,6 +409,8 @@ describe('vin-lookup.vue', () => {
|
||||||
.mockResolvedValue(lookupVehicleByVin.mockResponse);
|
.mockResolvedValue(lookupVehicleByVin.mockResponse);
|
||||||
jest.spyOn(vehicleQuestionsMixin.methods, getPartsOrQuestions.methodName)
|
jest.spyOn(vehicleQuestionsMixin.methods, getPartsOrQuestions.methodName)
|
||||||
.mockResolvedValue(getPartsOrQuestions.mockResponse);
|
.mockResolvedValue(getPartsOrQuestions.mockResponse);
|
||||||
|
jest.spyOn(vehicleQuestionsMixin.methods, getPartsOrQuestionsVinRequired.methodName)
|
||||||
|
.mockResolvedValue(getPartsOrQuestionsVinRequired.mockResponse);
|
||||||
|
|
||||||
const { container } = render(VinLookupComponent, mountOptions);
|
const { container } = render(VinLookupComponent, mountOptions);
|
||||||
|
|
||||||
|
|
@ -436,6 +444,8 @@ describe('vin-lookup.vue', () => {
|
||||||
.mockResolvedValue(lookupVehicleByVin.mockResponse);
|
.mockResolvedValue(lookupVehicleByVin.mockResponse);
|
||||||
jest.spyOn(vehicleQuestionsMixin.methods, getPartsOrQuestions.methodName)
|
jest.spyOn(vehicleQuestionsMixin.methods, getPartsOrQuestions.methodName)
|
||||||
.mockResolvedValue(getPartsOrQuestions.mockResponse);
|
.mockResolvedValue(getPartsOrQuestions.mockResponse);
|
||||||
|
jest.spyOn(vehicleQuestionsMixin.methods, getPartsOrQuestionsVinRequired.methodName)
|
||||||
|
.mockResolvedValue(getPartsOrQuestionsVinRequired.mockResponse);
|
||||||
store.getCapabilityQuestions.mockResolvedValueOnce({ data: [] });
|
store.getCapabilityQuestions.mockResolvedValueOnce({ data: [] });
|
||||||
|
|
||||||
const { container } = render(VinLookupComponent, mountOptions);
|
const { container } = render(VinLookupComponent, mountOptions);
|
||||||
|
|
@ -469,6 +479,8 @@ describe('vin-lookup.vue', () => {
|
||||||
.mockResolvedValue(lookupVehicleByVin.mockResponse);
|
.mockResolvedValue(lookupVehicleByVin.mockResponse);
|
||||||
jest.spyOn(vehicleQuestionsMixin.methods, getPartsOrQuestions.methodName)
|
jest.spyOn(vehicleQuestionsMixin.methods, getPartsOrQuestions.methodName)
|
||||||
.mockResolvedValue(getPartsOrQuestions.mockResponse);
|
.mockResolvedValue(getPartsOrQuestions.mockResponse);
|
||||||
|
jest.spyOn(vehicleQuestionsMixin.methods, getPartsOrQuestionsVinRequired.methodName)
|
||||||
|
.mockResolvedValue(getPartsOrQuestionsVinRequired.mockResponse);
|
||||||
|
|
||||||
const { container } = render(VinLookupComponent, mountOptions);
|
const { container } = render(VinLookupComponent, mountOptions);
|
||||||
|
|
||||||
|
|
@ -505,6 +517,8 @@ describe('vin-lookup.vue', () => {
|
||||||
.mockResolvedValue(lookupVehicleByVin.mockResponse);
|
.mockResolvedValue(lookupVehicleByVin.mockResponse);
|
||||||
jest.spyOn(vehicleQuestionsMixin.methods, getPartsOrQuestions.methodName)
|
jest.spyOn(vehicleQuestionsMixin.methods, getPartsOrQuestions.methodName)
|
||||||
.mockResolvedValue(getPartsOrQuestions.mockResponse);
|
.mockResolvedValue(getPartsOrQuestions.mockResponse);
|
||||||
|
jest.spyOn(vehicleQuestionsMixin.methods, getPartsOrQuestionsVinRequired.methodName)
|
||||||
|
.mockResolvedValue(getPartsOrQuestionsVinRequired.mockResponse);
|
||||||
|
|
||||||
const { container } = render(VinLookupComponent, mountOptions);
|
const { container } = render(VinLookupComponent, mountOptions);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -176,8 +176,6 @@ export default {
|
||||||
this.$refs.siteFooter.enableForwardAction();
|
this.$refs.siteFooter.enableForwardAction();
|
||||||
showIssLoadingModal(true);
|
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) {
|
if (this.mainStore.order.vehicle.vinRequired) {
|
||||||
this.mainStore.setBailout(bailoutMessage.YMMNotFound());
|
this.mainStore.setBailout(bailoutMessage.YMMNotFound());
|
||||||
return this.$router.navigate(
|
return this.$router.navigate(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue