+
@@ -26,6 +27,7 @@ import alert from "@/ux-components/alert/alert";
import eventBus from "@/helpers/event-bus/event-bus";
import { globalEvents } from "@/constants/events";
import menuModal from "@/fmg-components/funnel-header/menu-modal/menu-modal";
+import salesforceWebchat from "../../digital-components/salesforce-webchat/salesforce-webchat.vue";
// Constants
const ALERT_DURATION = 3000; // millisecond time to display alert before dismissal
@@ -39,6 +41,10 @@ export default {
},
props: {
cmsWidgetName: String,
+ hideSalesforceWebchatLaunchButton: {
+ type: Boolean,
+ default: false,
+ },
},
computed: {
imageSrc() {
@@ -62,6 +68,7 @@ export default {
components: {
alert,
menuModal,
+ salesforceWebchat,
},
mounted() {
// Check if alert event is on the bus
diff --git a/src/layouts/address-lookup/address-lookup.spec.js b/src/layouts/address-lookup/address-lookup.spec.js
index 19a46abb8..677c14069 100644
--- a/src/layouts/address-lookup/address-lookup.spec.js
+++ b/src/layouts/address-lookup/address-lookup.spec.js
@@ -182,39 +182,6 @@ describe("address-lookup.vue", () => {
// Assert
expect(wrapper.findComponent({ ref: "alertVinNotFound" }).isVisible()).toBe(true);
});
- 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("navigation", () => {
@@ -774,18 +741,6 @@ function setupMocks({
wrapper.vm.setCmsContent = jest.fn();
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 };
}
diff --git a/src/layouts/address-lookup/address-lookup.vue b/src/layouts/address-lookup/address-lookup.vue
index c33ef68e5..8c4e21e9a 100644
--- a/src/layouts/address-lookup/address-lookup.vue
+++ b/src/layouts/address-lookup/address-lookup.vue
@@ -81,20 +81,13 @@