diff --git a/src/layouts/license-plate-lookup/license-plate-lookup.spec.js b/src/layouts/license-plate-lookup/license-plate-lookup.spec.js
index 2ffe61193..14f0408d1 100644
--- a/src/layouts/license-plate-lookup/license-plate-lookup.spec.js
+++ b/src/layouts/license-plate-lookup/license-plate-lookup.spec.js
@@ -611,42 +611,6 @@ describe("license-plate-lookup.vue", () => {
expect(arePagePrerequisitesValid).toBe(false);
});
});
-
- describe("alerts", () => {
- test("should show the AlertNoService when displayNoServiceAlert is true", async () => {
- const { wrapper } = setupMocks({
- isZipServiceable: true,
- displayNoServiceAlert: true,
- lookupVinbyAddressResponse: {
- isStatePermissible: true,
- vinVehicles: [], // Return no vehicles
- },
- });
-
- // Set displayNoServiceAlert to true
- await wrapper.setData({ displayNoServiceAlert: true });
-
- // Check if the AlertNoService component is rendered
- const alertNoService = wrapper.findComponent({ ref: "AlertNoService" });
- expect(alertNoService.exists()).toBe(true);
- });
- test("should hide the AlertNoService when displayNoServiceAlert is false", async () => {
- const { wrapper } = setupMocks({
- isZipServiceable: true,
- displayNoServiceAlert: false,
- lookupVinbyAddressResponse: {
- isStatePermissible: true,
- vinVehicles: [], // Return no vehicles
- },
- });
- // Ensure displayNoServiceAlert is false
- await wrapper.setData({ displayNoServiceAlert: false });
-
- // Check if the AlertNoService component is not rendered
- const alertNoService = wrapper.findComponent({ ref: "AlertNoService" });
- expect(alertNoService.exists()).toBe(false);
- });
- });
});
function setupMocks({
@@ -752,18 +716,5 @@ function setupMocks({
wrapper.vm.getCmsContent = jest.fn().mockImplementation(() => "");
wrapper.vm.$refs.navbar.updateButtonText = jest.fn();
wrapper.vm.$refs.navbar.removeLoader = jest.fn();
- const closestShops = {
- data: {
- providers: [
- { id: 1, name: "Shop 1" },
- { id: 2, name: "Shop 2" },
- ],
- },
- };
-
- wrapper.vm.findClosestApplicableShops = jest.fn().mockImplementation(() => {
- return new Promise((resolve) => resolve(closestShops));
- });
-
return { wrapper, apiPromise };
}
diff --git a/src/layouts/license-plate-lookup/license-plate-lookup.vue b/src/layouts/license-plate-lookup/license-plate-lookup.vue
index a8c68215a..8736df956 100644
--- a/src/layouts/license-plate-lookup/license-plate-lookup.vue
+++ b/src/layouts/license-plate-lookup/license-plate-lookup.vue
@@ -177,7 +177,6 @@ export default {
displayInvalidZipAlert: false,
showServiceZipField: this.getServiceZipFromStore(),
isZipServiceable: false,
- displayNoServiceAlert: false,
};
},
methods: {
@@ -280,17 +279,6 @@ export default {
this.displayInvalidZipAlert = true;
return this.$refs.navbar.removeLoader();
}
- if (this.isHeavyTruck) {
- const closestShops = await this.findClosestApplicableShops(
- this.serviceZipCode,
- this.carId
- );
- this.displayNoServiceAlert = !closestShops?.data?.providers?.length;
- if (this.displayNoServiceAlert) {
- return this.$refs.navbar.removeLoader();
- }
- }
-
// Check if the CarId has changed.
this.isCarIdDifferent =
vinLookup.data.vehicle.carId !== this.$store.getters.vehicle.carId;
@@ -405,7 +393,6 @@ export default {
this.displayMatchedDifferentVehicleAlert = false;
this.displayVinLookupByHomeAddressNotAllowedAlert = false;
this.displayInvalidZipAlert = false;
- this.displayNoServiceAlert = false;
},
},
mounted() {
@@ -450,7 +437,6 @@ export default {
serviceZipCode() {
// If they modify the service zip code, then hide the error message.
this.displayNonServiceableZipAlert = false;
- this.displayNoServiceAlert = false;
this.$refs.navbar.updateButtonText(
this.getCmsContent("FunnelFooterWidget", "ForwardButtonText")
);
diff --git a/src/layouts/service-location/appointment-type-question/appointment-type-question.spec.js b/src/layouts/service-location/appointment-type-question/appointment-type-question.spec.js
index 8ff7c9b1c..c6af1377f 100644
--- a/src/layouts/service-location/appointment-type-question/appointment-type-question.spec.js
+++ b/src/layouts/service-location/appointment-type-question/appointment-type-question.spec.js
@@ -100,7 +100,7 @@ describe("appointment-type-question.vue", () => {
]);
});
- it("Should display only the In-Shop answer when only in-shop service is available", async () => {
+ it("Should display only the In-Shop and Drop-Off answers when only in-shop service is available", async () => {
// Arrange/Act
const { wrapper } = setupMocks({
mixins: [mockMixin],
@@ -108,7 +108,6 @@ describe("appointment-type-question.vue", () => {
cmsWidgetName: cmsWidgetName,
isServiceableInshop: true,
isServiceableMobile: false,
- isServiceableDropoff: false,
},
mountOptions: {
attachTo: document.body,
@@ -124,6 +123,13 @@ describe("appointment-type-question.vue", () => {
SubWidgetName: "",
Text: "In-shop",
},
+ {
+ AnswerImageUrl: "",
+ Name: "Dropoff",
+ SubText: "",
+ SubWidgetName: "",
+ Text: "Drop-off",
+ },
]);
});
diff --git a/src/layouts/service-location/appointment-type-question/appointment-type-question.vue b/src/layouts/service-location/appointment-type-question/appointment-type-question.vue
index 4c1c0d031..64bf159ff 100644
--- a/src/layouts/service-location/appointment-type-question/appointment-type-question.vue
+++ b/src/layouts/service-location/appointment-type-question/appointment-type-question.vue
@@ -32,7 +32,6 @@ export default {
cmsWidgetName: String,
isServiceableMobile: Boolean,
isServiceableInshop: Boolean,
- isServiceableDropoff: Boolean,
mobileFeeApplies: Boolean,
},
computed: {
@@ -46,7 +45,7 @@ export default {
const shouldShowMobile = this.isServiceableMobile;
const shouldShowInshop = this.isServiceableInshop;
const shouldShowDropoff =
- this.isServiceableDropoff && !this.$store.getters.damage.isRepair;
+ this.isServiceableInshop && !this.$store.getters.damage.isRepair;
var answers = this.answersFromCms
? this.answersFromCms.filter((answer) => {
@@ -78,11 +77,6 @@ export default {
isMobileOnly() {
return this.isServiceableMobile && !this.isServiceableInshop;
},
- isInshopOnly() {
- return (
- this.isServiceableInshop && !this.isServiceableMobile && !this.isServiceableDropoff
- );
- },
},
watch: {
answersToDisplay: {
@@ -92,7 +86,7 @@ export default {
newValue.length == 1 &&
newValue.findIndex((answer) => answer.Name == "Mobile") != -1
) {
- this.selectedValue = "Mobile";
+ this.selectedValues = "Mobile";
}
},
immediate: true,
@@ -100,14 +94,7 @@ export default {
isMobileOnly: {
handler(newValue) {
if (newValue) {
- this.selectedValue = "Mobile";
- }
- },
- },
- isInshopOnly: {
- handler(newValue) {
- if (newValue) {
- this.selectedValue = "Inshop";
+ this.selectedValues = "Mobile";
}
},
},
diff --git a/src/layouts/service-location/service-location.vue b/src/layouts/service-location/service-location.vue
index 7b3163c87..a85a5bd17 100644
--- a/src/layouts/service-location/service-location.vue
+++ b/src/layouts/service-location/service-location.vue
@@ -76,7 +76,6 @@
v-show="isAppointmentTypeDisplayed"
:isServiceableMobile="isServiceableMobile"
:isServiceableInshop="isServiceableInshop"
- :isServiceableDropoff="isServiceableDropoff"
:isDisplayed="isAppointmentTypeDisplayed"
:mobileFeeApplies="mobileFeeApplies"
ref="appointmentTypeQuestion"
@@ -197,8 +196,6 @@ export default {
isVehicleProtected: this.getIsVehicleProtectedFromStore(),
isGlassServiceableInshop: null,
isRecalibrationServiceableInshop: null,
- isGlassServiceableDropoff: null,
- isRecalibrationServiceableDropoff: null,
isGlassServiceableMobile: null,
isRecalibrationServiceableMobile: null,
selectedAppointmentType: this.getSelectedAppointmentType(),
@@ -357,13 +354,6 @@ export default {
return this.isGlassServiceableInshop;
}
},
- isServiceableDropoff() {
- if (this.isRecalibrationServiceableDropoff !== null) {
- return this.isGlassServiceableDropoff && this.isRecalibrationServiceableDropoff;
- } else {
- return this.isGlassServiceableDropoff;
- }
- },
isShopQuestionDisplayed() {
return (
this.selectedAppointmentType === "Inshop" ||
@@ -569,9 +559,6 @@ export default {
this.isGlassServiceableInshop = serviceabilityDetails.isGlassServiceableInshop;
this.isRecalibrationServiceableInshop =
serviceabilityDetails.isRecalibrationServiceableInshop;
- this.isGlassServiceableDropoff = serviceabilityDetails.isGlassServiceableDropoff;
- this.isRecalibrationServiceableDropoff =
- serviceabilityDetails.isRecalibrationServiceableDropoff;
this.isGlassServiceableMobile = serviceabilityDetails.isGlassServiceableMobile;
this.isRecalibrationServiceableMobile =
serviceabilityDetails.isRecalibrationServiceableMobile;
diff --git a/src/layouts/service-zip/service-zip.spec.js b/src/layouts/service-zip/service-zip.spec.js
index e7cd68e3d..f8fc1f2ae 100644
--- a/src/layouts/service-zip/service-zip.spec.js
+++ b/src/layouts/service-zip/service-zip.spec.js
@@ -415,33 +415,6 @@ describe("service-zip.vue", () => {
expect(wrapper.vm.displayInvalidZipAlert).toBe(false);
expect(wrapper.vm.displayNonServiceableZipAlert).toBe(false);
});
- test("should show the AlertNoService when displayNoServiceAlert is true", async () => {
- // Arrange
- // no changes to store
- applyMockStoreDataToGetters();
-
- const wrapper = setupMocks({});
- wrapper.vm.serviceZipCode = "12345";
-
- // Act
- wrapper.vm.displayNoServiceAlert = true;
-
- // Check if the AlertNoService component is rendered
- expect(wrapper.vm.displayNoServiceAlert).toBe(true);
- });
- test("should hide the AlertNoService when displayNoServiceAlert is false", async () => {
- // Arrange
- // no changes to store
- applyMockStoreDataToGetters();
-
- const wrapper = setupMocks({});
- wrapper.vm.serviceZipCode = "12345";
- //ACT
- wrapper.vm.displayNoServiceAlert = false;
-
- // Check if the AlertNoService component is rendered
- expect(wrapper.vm.displayNoServiceAlert).toBe(false);
- });
});
});
@@ -538,16 +511,5 @@ function setupMocks({ customMountOptions, customZipQuery, customZipDataResponse
];
const wrapper = shallowMount(serviceZip, mountOptions);
- wrapper.vm.findClosestApplicableShops = jest.fn().mockImplementation(() => {
- return Promise.resolve({
- data: {
- providers: [
- { id: 1, name: "Shop 1" },
- { id: 2, name: "Shop 2" },
- ],
- },
- });
- });
-
return wrapper;
}
diff --git a/src/layouts/service-zip/service-zip.vue b/src/layouts/service-zip/service-zip.vue
index a991119ef..5bb9ed471 100644
--- a/src/layouts/service-zip/service-zip.vue
+++ b/src/layouts/service-zip/service-zip.vue
@@ -47,18 +47,10 @@
v-if="displayNonServiceableZipAlert"
alertClass="alert-danger" />
-
-
@@ -122,7 +114,6 @@ export default {
isHeavyTruck: this.getIsVehicleHeavyTruckServiceableFromStore(),
displayInvalidZipAlert: false,
displayNonServiceableZipAlert: false,
- displayNoServiceAlert: false,
};
},
diff --git a/src/layouts/vin-lookup/vin-lookup.spec.js b/src/layouts/vin-lookup/vin-lookup.spec.js
index 458f9fc48..6eb1aa515 100644
--- a/src/layouts/vin-lookup/vin-lookup.spec.js
+++ b/src/layouts/vin-lookup/vin-lookup.spec.js
@@ -258,39 +258,6 @@ describe("vin-lookup.vue", () => {
// Assert
expect(wrapper.findAllComponents({ name: "alert" }).length).toBe(1);
});
-
- test("should show the AlertNoService when displayNoServiceAlert is true", async () => {
- const { wrapper } = setupMocks({
- isZipServiceable: true,
- displayNoServiceAlert: true,
- lookupVinbyAddressResponse: {
- isStatePermissible: true,
- vinVehicles: [], // Return no vehicles
- },
- });
- // Set displayNoServiceAlert to true
- await wrapper.setData({ displayNoServiceAlert: true });
-
- // Check if the AlertNoService component is rendered
- const alertNoService = wrapper.findComponent({ ref: "AlertNoService" });
- expect(alertNoService.exists()).toBe(true);
- });
- test("should hide the AlertNoService when displayNoServiceAlert is false", async () => {
- const { wrapper } = setupMocks({
- isZipServiceable: true,
- displayNoServiceAlert: false,
- lookupVinbyAddressResponse: {
- isStatePermissible: true,
- vinVehicles: [], // Return no vehicles
- },
- });
- // Ensure displayNoServiceAlert is false
- await wrapper.setData({ displayNoServiceAlert: false });
-
- // Check if the AlertNoService component is not rendered
- const alertNoService = wrapper.findComponent({ ref: "AlertNoService" });
- expect(alertNoService.exists()).toBe(false);
- });
});
describe("getVinFromImage", () => {
diff --git a/src/layouts/vin-lookup/vin-lookup.vue b/src/layouts/vin-lookup/vin-lookup.vue
index b439b5e5e..1b57ee068 100644
--- a/src/layouts/vin-lookup/vin-lookup.vue
+++ b/src/layouts/vin-lookup/vin-lookup.vue
@@ -71,8 +71,7 @@
vinPopulatedOnPageLoad &&
isInsuranceVerified &&
!displayInvalidZipAlert &&
- !displayNonServiceableZipAlert &&
- !displayNoServiceAlert
+ !displayNonServiceableZipAlert
"
alertClass="alert-success" />
@@ -108,23 +107,14 @@
vinPopulatedOnPageLoad &&
!isInsuranceVerified &&
!displayInvalidZipAlert &&
- !displayNonServiceableZipAlert &&
- !displayNoServiceAlert
+ !displayNonServiceableZipAlert
"
alertClass="alert-success" />
-