CSR-98 Fix tests
This commit is contained in:
parent
0eaec7e5f8
commit
950ca93ad8
3 changed files with 7 additions and 5 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
import * as self from "./heritage-integration-helper";
|
||||||
import { storeActions } from "@/constants/store-actions.js";
|
import { storeActions } from "@/constants/store-actions.js";
|
||||||
import { cookieNames } from "@/constants/cookie-names";
|
import { cookieNames } from "@/constants/cookie-names";
|
||||||
import { queryStrings } from "@/constants/query-strings";
|
import { queryStrings } from "@/constants/query-strings";
|
||||||
|
|
@ -36,7 +37,7 @@ export async function saveOrder() {
|
||||||
*/
|
*/
|
||||||
export async function loadOrderIfPresent() {
|
export async function loadOrderIfPresent() {
|
||||||
console.log("attempting to load referral....");
|
console.log("attempting to load referral....");
|
||||||
const conceptCookie = this.getConceptCookie();
|
const conceptCookie = self.getConceptCookie();
|
||||||
|
|
||||||
// Do nothing if there is no cookie or no correlation id.
|
// Do nothing if there is no cookie or no correlation id.
|
||||||
if (conceptCookie === null || conceptCookie.ReferralCorrelationId === null) {
|
if (conceptCookie === null || conceptCookie.ReferralCorrelationId === null) {
|
||||||
|
|
@ -177,10 +178,12 @@ export function isSavedSessionStillActive() {
|
||||||
/*
|
/*
|
||||||
Used to navigate to the heritage funnel with the correct query string and url.
|
Used to navigate to the heritage funnel with the correct query string and url.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export async function navigateToHeritageFunnel() {
|
export async function navigateToHeritageFunnel() {
|
||||||
|
|
||||||
// Create the order (or save existing order) when navigating to Heritage Funnel.
|
// Create the order (or save existing order) when navigating to Heritage Funnel.
|
||||||
await this.saveOrder();
|
// console.log(exports)
|
||||||
|
await self.saveOrder();
|
||||||
|
|
||||||
router.navigateToExternalUrl(
|
router.navigateToExternalUrl(
|
||||||
externalUrls.HERITAGE_FUNNEL,
|
externalUrls.HERITAGE_FUNNEL,
|
||||||
|
|
|
||||||
|
|
@ -102,8 +102,7 @@ describe("saveOrder", () => {
|
||||||
{
|
{
|
||||||
actionName: storeActions.SET_REFERRAL_INFORMATION
|
actionName: storeActions.SET_REFERRAL_INFORMATION
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
router: router
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const mocks = setupMocksForJsFiles(mockData);
|
const mocks = setupMocksForJsFiles(mockData);
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { fmgPageValues } from "@/router/router-constants/fmgPage-values";
|
import { fmgPageValues } from "@/router/router-constants/fmgPage-values";
|
||||||
import { navigationScenarios } from "@/router/router-constants/navigation-scenarios";
|
import { navigationScenarios } from "@/router/router-constants/navigation-scenarios";
|
||||||
import { applicationConfig } from "../../constants/application-config";
|
import { applicationConfig } from "@/constants/application-config";
|
||||||
|
|
||||||
const routingTable = [
|
const routingTable = [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue