CSR-690 Cleanup

This commit is contained in:
Katie 2022-08-10 09:18:41 -04:00
parent 11016372a3
commit 00d62b483f
7 changed files with 5 additions and 31 deletions

View file

@ -9,12 +9,7 @@ import { headerKeys } from "@/constants/header-keys";
export default {
callHttpClient({ method, endpoint, payload, logApiCall = true }) {
return new Promise((resolve, reject) => {
// const cfDistroUrl = applicationConfig.CONSUMER_CF_DISTRO;
let cfDistroUrl = applicationConfig.CONSUMER_CF_DISTRO;
if (endpoint.includes("/order/"))
cfDistroUrl = "https://localhost:44346"
const cfDistroUrl = applicationConfig.CONSUMER_CF_DISTRO;
const payloadAndAnalyticsData = Object.assign({}, payload, { AppName: "FixMyGlass" });
const headers = {
[headerKeys.EXPERIMENT]: JSON.stringify(store.getters.experimentSettings)

View file

@ -9,7 +9,6 @@ import { fmgPageValues } from "@/router/router-constants/fmgPage-values";
import store from "@/store";
import router from "@/router";
import { lazy } from "yup";
// Mock Lazy Load
jest.mock("@/router/dynamic-routing/component-loader.js", () => ({

View file

@ -43,18 +43,4 @@ export function getDateForSavedSessionTimeout() {
const currentDate = new Date(new Date().toUTCString())
currentDate.setDate(currentDate.getDate() + applicationConfig.SAVED_SESSION_TIMEOUT_DAYS)
return currentDate.toUTCString();
}
/** Function to get saved session timeout date based on values in the cookie */
// function getSavedSessionTimeoutDate() {
// let lastTouched = new Date(getFunnelCookie()?.LastTouched);
// lastTouched = lastTouched ? lastTouched : new Date().toUTCString();
// let savedSessionTimeoutDate = lastTouched;
// savedSessionTimeoutDate.setDate(savedSessionTimeoutDate.getDate() + applicationConfig.SAVED_SESSION_TIMEOUT_DAYS);
// // const test = lastTouched
// // ? lastTouched.setDate(lastTouched.getDate() + applicationConfig.SAVED_SESSION_TIMEOUT_DAYS)
// // : getDateForSavedSessionTimeout();
// return savedSessionTimeoutDate;
// }
}

View file

@ -112,7 +112,7 @@ export default {
},
methods: {
arePagePrerequisitesValid() {
return false; // TODO - DO TRUE TEST OF PAGEDATA
return true; // TODO - DO TRUE TEST OF PAGEDATA
// return Object.keys(store.getters.pageData(fmgPageValues.CAPABILITY_QUESTIONS)).length > 0;
},
showThisPartQuestionChain(part, i) {

View file

@ -115,7 +115,7 @@ export default {
},
methods: {
arePagePrerequisitesValid() {
return false; // TODO - DO TRUE TEST OF PAGEDATA
return true; // TODO - DO TRUE TEST OF PAGEDATA
// return Object.keys(store.getters.pageData(fmgPageValues.MOLDING_QUESTIONS)).length > 0;
},
showThisPartQuestionChain(part, i) {

View file

@ -76,11 +76,7 @@ export default {
);
},
arePagePrerequisitesValid() {
if (store.getters.vehicle.year){
return true;
}
return false;
return store.getters.vehicle.year != null;
},
},

View file

@ -207,8 +207,6 @@ function navigateToUrl(url, optionalQuery = {}) {
externalUrl.searchParams.append(queryKey, optionalQuery[queryKey]);
}
externalUrl.searchParams.append("experiments", "ConceptFunnel=ConceptFunnel_V1=ConceptFunnel_TEST=true");
window.location.assign(externalUrl);
}