commit
3edb0bf1f6
3 changed files with 6 additions and 2 deletions
|
|
@ -45,7 +45,7 @@ export async function getDirectNavigation(toRoute) {
|
||||||
if (fmgPageValue === fmgPageValues.QUOTE) {
|
if (fmgPageValue === fmgPageValues.QUOTE) {
|
||||||
const skipVin = await skipVinLookup();
|
const skipVin = await skipVinLookup();
|
||||||
|
|
||||||
if (skipVin) {
|
if (skipVin || !store.getters.vehicle?.vin) {
|
||||||
return fmgPageValues.ESTIMATE;
|
return fmgPageValues.ESTIMATE;
|
||||||
} else {
|
} else {
|
||||||
return fmgPageValues.VIN_LOOKUP;
|
return fmgPageValues.VIN_LOOKUP;
|
||||||
|
|
|
||||||
|
|
@ -418,6 +418,7 @@ describe("getPageToRouteExistingOrderTo", () => {
|
||||||
store.commit(storeMutations.UPDATE_GLASS_TO_REPLACE, [
|
store.commit(storeMutations.UPDATE_GLASS_TO_REPLACE, [
|
||||||
{ glassLocation: glassLocations.WINDSHIELD },
|
{ glassLocation: glassLocations.WINDSHIELD },
|
||||||
]);
|
]);
|
||||||
|
store.commit(storeMutations.UPDATE_VEHICLE_VIN, "abcd1234");
|
||||||
|
|
||||||
// Act
|
// Act
|
||||||
const result = await getPageToRouteExistingOrderTo(toRoute);
|
const result = await getPageToRouteExistingOrderTo(toRoute);
|
||||||
|
|
|
||||||
|
|
@ -157,7 +157,10 @@ const routes = [
|
||||||
// Reroute around pages that should not be available.
|
// Reroute around pages that should not be available.
|
||||||
|
|
||||||
// Exception 1: Integrated Users should not see vehicle or quote pages.
|
// Exception 1: Integrated Users should not see vehicle or quote pages.
|
||||||
if (store.getters.payment?.insuranceCoverage?.isVerified) {
|
if (
|
||||||
|
store.getters.payment?.insuranceCoverage?.isVerified ||
|
||||||
|
store.getters.order?.referralNumber?.length === 6
|
||||||
|
) {
|
||||||
if (to.query.fmgPage === fmgPageValues.VEHICLE) {
|
if (to.query.fmgPage === fmgPageValues.VEHICLE) {
|
||||||
to.query.fmgPage = fmgPageValues.VEHICLE_DAMAGE;
|
to.query.fmgPage = fmgPageValues.VEHICLE_DAMAGE;
|
||||||
} else if (
|
} else if (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue