diff --git a/src/digital-components/text-block/text-block.spec.js b/src/digital-components/text-block/text-block.spec.js
index 89b2fdf36..c9825f36f 100644
--- a/src/digital-components/text-block/text-block.spec.js
+++ b/src/digital-components/text-block/text-block.spec.js
@@ -1,7 +1,7 @@
import { shallowMount } from "@vue/test-utils";
import TextBlock from "./text-block";
-describe("modal.vue", () => {
+describe("text-block.vue", () => {
it("Should display 'Text' when 'Text' is defined in the CMS", async () => {
// Act
const wrapper = shallowMount(TextBlock, {
diff --git a/src/digital-components/text-block/text-block.vue b/src/digital-components/text-block/text-block.vue
index 2deb126e5..d8ed9ad54 100644
--- a/src/digital-components/text-block/text-block.vue
+++ b/src/digital-components/text-block/text-block.vue
@@ -1,11 +1,43 @@
-
+
+
+
+ {{ getRouterLinkDisplayTextFromCopy(copy) }}
+
+
+
+
+
+
+
diff --git a/src/helpers/cms-content-helper.js b/src/helpers/cms-content-helper.js
index b4927894f..f4ae0be6d 100644
--- a/src/helpers/cms-content-helper.js
+++ b/src/helpers/cms-content-helper.js
@@ -1,6 +1,6 @@
import { storeActions } from "@/constants/store-actions.js";
import store from "@/store";
-import { dynamicStrings } from "../constants/dynamic-strings";
+import { dynamicStrings } from "@/constants/dynamic-strings";
export function fetchCmsContentForPage(fmgPage) {
return store.dispatch(storeActions.GET_PAGE_DATA, { pageName: fmgPage }).then((response) => {
@@ -284,7 +284,7 @@ function getIfStatementRegexExpression() {
//////////////////////////////////////////
export function doesCopyContainRouterLink(copy) {
- return copy.includes(this.dynamicStrings.ROUTER_LINK);
+ return copy.includes(dynamicStrings.ROUTER_LINK);
}
export function doesCopyContainTextLink(copy) {
diff --git a/src/layouts/address-vehicles/address-vehicles.vue b/src/layouts/address-vehicles/address-vehicles.vue
index d45732217..de1fa9999 100644
--- a/src/layouts/address-vehicles/address-vehicles.vue
+++ b/src/layouts/address-vehicles/address-vehicles.vue
@@ -20,19 +20,12 @@
validationRules="vehicle-required"
v-model="selectedVehicleVin"
:isCarIdDifferent="isCarIdDifferent" />
-
-
-
- {{ getRouterLinkDisplayTextFromCopy(copy) }}
-
-
-
+
+
diff --git a/src/layouts/schedule/schedule.vue b/src/layouts/schedule/schedule.vue
index afd296fc2..b79d31014 100644
--- a/src/layouts/schedule/schedule.vue
+++ b/src/layouts/schedule/schedule.vue
@@ -4,20 +4,13 @@
-
-
-
- {{ getRouterLinkDisplayTextFromCopy(copy) }}
-
-
-
-
+
+
+
diff --git a/src/ux-components/alert/alert.spec.js b/src/ux-components/alert/alert.spec.js
index 1f5d0fcc8..9d8112189 100644
--- a/src/ux-components/alert/alert.spec.js
+++ b/src/ux-components/alert/alert.spec.js
@@ -15,7 +15,6 @@ describe("alert.vue", () => {
},
})
);
-
const wrapperDiv = wrapper.find("div");
// Assert
@@ -49,7 +48,7 @@ describe("alert.vue", () => {
expect(wrapper.vm.alertCopy).toBe("testCopy");
});
- it("Should container a tag if the manualCopy contains a {routerLink: testName, testLink} placeholder", () => {
+ it("Should container a tag if the manualCopy contains a {routerLink: testName, testLink} placeholder", () => {
// Arrange & Act
const wrapper = shallowMount(
alert,
@@ -58,11 +57,12 @@ describe("alert.vue", () => {
manualHeadline: "testHeader",
manualCopy: "testCopy with a {routerLink: testName, testLink} inside of it",
},
- stubs: ["router-link"],
+ stubs: ["textBlock"],
})
);
+
// Assert
- expect(wrapper.find("router-link").exists()).toBe(true);
+ expect(wrapper.html()).toEqual(expect.stringContaining("text-block-stub"));
});
it("Should contain 'n+1' tags if the body copy has 'n'
tags", () => {
diff --git a/src/ux-components/alert/alert.vue b/src/ux-components/alert/alert.vue
index c5899b440..c7e4aca30 100644
--- a/src/ux-components/alert/alert.vue
+++ b/src/ux-components/alert/alert.vue
@@ -14,17 +14,11 @@
v-if="!doesCopyContainRouterLink(paragraph) && !doesCopyContainTextLink(paragraph)"
v-html="paragraph">
-
-
- {{ getRouterLinkDisplayTextFromCopy(copy) }}
-
-
+
+
+
+
+