INSR-8879: Fix failing tests

This commit is contained in:
Alex Humphries 2026-04-01 14:50:24 -04:00
parent 19c7d41b62
commit 029529b391
2 changed files with 4 additions and 3 deletions

View file

@ -41,7 +41,8 @@ const mountOptions = {
methods: {
getCmsContent: jest.fn(),
getFooterInfoBoxHeight: jest.fn(() => 80),
getPageNameByQueryString: jest.fn(() => '')
getPageNameByQueryString: jest.fn(() => ''),
pushEventToGA: jest.fn()
}
}
],

View file

@ -486,11 +486,11 @@ export default {
},
logEvents() {
const vehicleString = this.mainStore.order.vehicle.make + '_' + this.mainStore.order.vehicle.model + '_' + this.mainStore.order.vehicle.style;
this.pushEventToGA("CAR SUBMISSION", this.mainStore.order.vehicle.year.toString(), vehicleString, true, null, 0);
this.pushEventToGA("CAR SUBMISSION", this.mainStore.order.vehicle.year?.toString(), vehicleString, true, null, 0);
if (this.isWindshieldRepair) {
this.pushEventToGA("damage", "selected", "repair", true, null, null);
this.pushEventToGA("VehicleDamage", "Repair", this.mainStore.damage.numberOfChips.toString(), true, null, this.mainStore.damage.numberOfChips);
this.pushEventToGA("VehicleDamage", "Repair", this.mainStore.damage.numberOfChips?.toString(), true, null, this.mainStore.damage.numberOfChips);
} else {
this.pushEventToGA("damage", "selected", "replace", true, null, null);
this.selectedGlassToReplace().forEach((glass) => {