diff --git a/src/constants/endpoints.js b/src/constants/endpoints.js
index ca1555e7b..13ad55b34 100644
--- a/src/constants/endpoints.js
+++ b/src/constants/endpoints.js
@@ -75,8 +75,8 @@ const endpoints = {
url: "/analytics/api/v1/analytics/activity",
method: "POST",
},
- GetExperimentsByUserForGa: {
- url: "/analytics/api/v1/analytics/get-experiments-for-GA",
+ GetExperimentsByUser: {
+ url: "/analytics/api/v1/analytics/get-experiments",
method: "GET",
}
};
diff --git a/src/constants/error-messages.js b/src/constants/error-messages.js
index 17012ab68..963ba0b5d 100644
--- a/src/constants/error-messages.js
+++ b/src/constants/error-messages.js
@@ -21,6 +21,7 @@ const errorMessages = {
SERVICE_ZIP_FORMAT: "Please enter a valid Service ZIP",
VIN_REQUIRED: "Please enter your VIN",
VIN_FORMAT: "Please enter a valid VIN",
+ OPTION_REQUIRED: "Please select an option",
};
export { errorMessages };
diff --git a/src/constants/store-actions.js b/src/constants/store-actions.js
index 74dac5043..fe100d5e3 100644
--- a/src/constants/store-actions.js
+++ b/src/constants/store-actions.js
@@ -20,7 +20,7 @@ const storeActions = {
VALIDATE_ZIP: "validateZip",
LOG_EXPERIMENT_EXPOSURE: "logExperimentExposure",
LOG_ACTIVITY: "logActivity",
- GET_EXPERIMENTS_BY_USER_FOR_GA: "getExperimentsByUserForGa",
+ GET_EXPERIMENTS_BY_USER: "GetExperimentsByUser",
// DEPENDENCY MUTATIONS
RESET_VEHICLE_STATE_AND_DEPENDENCIES: "resetVehicleAndDependencies",
diff --git a/src/constants/store-mutations.js b/src/constants/store-mutations.js
index 3f42f9a5f..65f4719ec 100644
--- a/src/constants/store-mutations.js
+++ b/src/constants/store-mutations.js
@@ -22,7 +22,7 @@ const storeMutations = {
UPDATE_REGISTRATION_ZIP_CODE: "updateRegistrationZipCode",
UPDATE_REGISTRATION_FIRST_NAME: "updateRegistrationFirstName",
UPDATE_REGISTRATION_LAST_NAME: "updateRegistrationLastName",
- UPDATE_SERVICE_LOCATION_ZIP: "updateServiceLocationZip",
+ UPDATE_SERVICE_LOCATION_ZIP_CODE: "updateServiceLocationZipCode",
UPDATE_CUSTOMER_EMAIL_ADDRESS: "updateCustomerEmailAddress",
// ORDER MUTATIONS
diff --git a/src/constants/vin-lookup-method-selections.js b/src/constants/vin-lookup-method-selections.js
new file mode 100644
index 000000000..46f1e2044
--- /dev/null
+++ b/src/constants/vin-lookup-method-selections.js
@@ -0,0 +1,7 @@
+const vinLookupMethodSelections = {
+ MANUALVIN: "ManualVin",
+ LICENSEPLATE: "LicensePlate",
+ HOMEADDRESS: "HomeAddress",
+};
+
+export { vinLookupMethodSelections };
\ No newline at end of file
diff --git a/src/helpers/heritage-integration/navigation-helper.js b/src/helpers/heritage-integration/navigation-helper.js
index 49c4ab354..61c07203d 100644
--- a/src/helpers/heritage-integration/navigation-helper.js
+++ b/src/helpers/heritage-integration/navigation-helper.js
@@ -93,9 +93,9 @@ async function getLatestPageForRedirection() {
return fmgPageValues.VEHICLE_DAMAGE;
} else {
if (store.getters.vehicle.vin) {
- return fmgPageValues.LICENSE_PLATE_LOOKUP;
- } else {
return fmgPageValues.VIN_LOOKUP;
+ } else {
+ return fmgPageValues.ESTIMATE;
}
}
}
diff --git a/src/helpers/heritage-integration/navigation-helper.spec.js b/src/helpers/heritage-integration/navigation-helper.spec.js
index de5df0239..fd06920c2 100644
--- a/src/helpers/heritage-integration/navigation-helper.spec.js
+++ b/src/helpers/heritage-integration/navigation-helper.spec.js
@@ -175,7 +175,7 @@ describe("getPageToRouteExistingOrderTo", () => {
expect(result).toBe('vehicle-damage');
});
- test("getPageToRouteExistingOrderTo, should return license-plate-lookup", async () => {
+ test("getPageToRouteExistingOrderTo, should return vin-lookup", async () => {
// Arrange
const toRoute = {
query: {}
@@ -228,7 +228,7 @@ describe("getPageToRouteExistingOrderTo", () => {
const result = await getPageToRouteExistingOrderTo(toRoute, false);
//Assert
- expect(result).toBe('license-plate-lookup');
+ expect(result).toBe('vin-lookup');
});
test("getPageToRouteExistingOrderTo, should return estimate", async () => {
@@ -283,7 +283,7 @@ describe("getPageToRouteExistingOrderTo", () => {
const result = await getPageToRouteExistingOrderTo(toRoute, false);
//Assert
- expect(result).toBe('vin-lookup');
+ expect(result).toBe('estimate');
});
test("getPageToRouteExistingOrderTo, existing order, should return heritage", async () => {
diff --git a/src/helpers/unit-test-helper.js b/src/helpers/unit-test-helper.js
index 770dd893e..6577ed6ff 100644
--- a/src/helpers/unit-test-helper.js
+++ b/src/helpers/unit-test-helper.js
@@ -23,6 +23,7 @@ export function getMountOptions(mockData) {
mocks.pushPageViewToGA = jest.fn();
mocks.logEvent = jest.fn();
mocks.pushExperimentsToDataLayer = jest.fn();
+ mocks.prependActionToMethod = jest.fn();
mocks.dispatchStoreAction = jest.fn();
mocks.dispatchStoreAction.mockImplementation((actionName) => {
diff --git a/src/layouts/address-lookup/address-lookup.vue b/src/layouts/address-lookup/address-lookup.vue
index 895148575..032b42268 100644
--- a/src/layouts/address-lookup/address-lookup.vue
+++ b/src/layouts/address-lookup/address-lookup.vue
@@ -81,7 +81,7 @@ import store from "@/store";
import { storeActions } from "@/constants/store-actions";
import { storeMutations } from "@/constants/store-mutations";
import baseMixin from "@/mixins/base-mixin";
-import { navigateToHeritageFunnel } from "@/helpers/heritage-integration/navigation-helper";
+import { navigateAfterSaveToHeritageFunnel } from "@/helpers/heritage-integration/navigation-helper";
import { getDamageString, isGlassAvailableForCarId } from "@/helpers/damage-helper";
defineRule("service-zip-required", required(errorMessages.SERVICE_ZIP_REQUIRED));
@@ -167,7 +167,7 @@ export default {
return store.getters.order.customer.emailAddress;
},
getServiceZipFromStore() {
- return store.getters.order.serviceLocation.zip;
+ return store.getters.order.serviceLocation.zipCode;
},
async forwardButtonAction() {
this.resetWarningsAndErrors();
@@ -302,7 +302,7 @@ export default {
store.commit(storeMutations.UPDATE_REGISTRATION_ZIP_CODE, this.customerQuestions.addressQuestions.zipCode);
store.commit(storeMutations.UPDATE_REGISTRATION_FIRST_NAME, this.customerQuestions.firstName);
store.commit(storeMutations.UPDATE_REGISTRATION_LAST_NAME, this.customerQuestions.lastName);
- store.commit(storeMutations.UPDATE_SERVICE_LOCATION_ZIP, this.serviceZip);
+ store.commit(storeMutations.UPDATE_SERVICE_LOCATION_ZIP_CODE, this.serviceZip);
store.commit(storeMutations.UPDATE_CUSTOMER_EMAIL_ADDRESS, this.customerQuestions.email);
},
diff --git a/src/layouts/estimate/estimate.vue b/src/layouts/estimate/estimate.vue
index 0e41b24ed..b46c38801 100644
--- a/src/layouts/estimate/estimate.vue
+++ b/src/layouts/estimate/estimate.vue
@@ -1,13 +1,131 @@
- Estimate