diff --git a/src/layouts/policy-driver/policy-driver.spec.js b/src/layouts/policy-driver/policy-driver.spec.js
index 60ed331e6..f06904c1d 100644
--- a/src/layouts/policy-driver/policy-driver.spec.js
+++ b/src/layouts/policy-driver/policy-driver.spec.js
@@ -55,6 +55,15 @@ function setupMocks() {
fetchCmsContentForPage.mockResolvedValue(mockCmsContent);
settleAllPromises.mockResolvedValue({ cmsContent: mockCmsContent });
+ const mockMixin = {
+ methods: {
+ getCmsContent: jest.fn((widgetName, fieldName) => {
+ return mockCmsContent?.[widgetName]?.[fieldName] ?? "";
+ }),
+ setCmsContent: jest.fn(),
+ },
+ };
+
const mountOptions = getMountOptions({
route: { name: "policy-driver", query: {}, params: {} },
router: {
@@ -62,6 +71,7 @@ function setupMocks() {
navigateWithSaving: jest.fn(),
navigateWithoutSaving: jest.fn(),
},
+ mixins: [mockMixin],
});
const wrapper = shallowMount(policyDriver, mountOptions);
diff --git a/src/layouts/policy-driver/policy-driver.vue b/src/layouts/policy-driver/policy-driver.vue
index 0659ff658..2d13c4799 100644
--- a/src/layouts/policy-driver/policy-driver.vue
+++ b/src/layouts/policy-driver/policy-driver.vue
@@ -8,10 +8,20 @@
-
-
+
+
+
+
{
expect(wrapper.findComponent({ name: "funnelSubHeader" }).exists()).toBe(true);
});
- test("renders navbar component", () => {
- const { wrapper } = setupMocks();
- expect(wrapper.findComponent({ name: "insuranceNavBar" }).exists()).toBe(true);
- });
-
test("renders Form component", () => {
const { wrapper } = setupMocks();
expect(wrapper.findComponent({ name: "Form" }).exists()).toBe(true);
@@ -55,13 +50,23 @@ function setupMocks() {
fetchCmsContentForPage.mockResolvedValue(mockCmsContent);
settleAllPromises.mockResolvedValue({ cmsContent: mockCmsContent });
+ const mockMixin = {
+ methods: {
+ getCmsContent: jest.fn((widgetName, fieldName) => {
+ return mockCmsContent?.[widgetName]?.[fieldName] ?? "";
+ }),
+ setCmsContent: jest.fn(),
+ },
+ };
+
const mountOptions = getMountOptions({
- route: { name: "policy-vehicle", query: {}, params: {} },
+ route: { name: "endorsements", query: {}, params: {} },
router: {
navigate: jest.fn(),
navigateWithSaving: jest.fn(),
navigateWithoutSaving: jest.fn(),
},
+ mixins: [mockMixin],
});
const wrapper = shallowMount(policyInfoSubmitted, mountOptions);
diff --git a/src/layouts/policy-info-submitted/policy-info-submitted.vue b/src/layouts/policy-info-submitted/policy-info-submitted.vue
index 4b93def2e..901480407 100644
--- a/src/layouts/policy-info-submitted/policy-info-submitted.vue
+++ b/src/layouts/policy-info-submitted/policy-info-submitted.vue
@@ -1,5 +1,5 @@
-
@@ -27,8 +35,9 @@
+
+
diff --git a/src/layouts/policy-vehicle/policy-vehicle.vue b/src/layouts/policy-vehicle/policy-vehicle.vue
index d92d45b50..8963d444a 100644
--- a/src/layouts/policy-vehicle/policy-vehicle.vue
+++ b/src/layouts/policy-vehicle/policy-vehicle.vue
@@ -25,7 +25,10 @@
@back-clicked="backButtonAction"
@ForwardClicked="forwardButtonAction" />
-
+
@@ -95,11 +98,11 @@ export default {
vehicleNotListedQuestionText() {
return this.getCmsContent("VehicleNotListedWidget", "Text");
},
- amFamDisclaimerWidget() {
- return this.getCmsContent("AmFamDisclaimerWidget", "Text");
+ disclaimerText() {
+ return this.clientConfig?.DisclaimerWidget?.Text;
},
- showAmFamDisclaimer() {
- return this.parentAccountNumberFromStore() === this.parentAccountNumbers.CONNECT;
+ displayDisclaimerText() {
+ return this.disclaimerText !== null && this.disclaimerText !== "";
},
parentAccountNumbers() {
return parentAccountNumbers;
@@ -140,4 +143,11 @@ export default {
background-color: $blue;
color: $white;
}
+
+.disclaimer-text {
+ font-size: 12px !important;
+ font-weight: 400;
+ color: $gray-600;
+ line-height: 1.625;
+}
diff --git a/src/layouts/recalibration-info/recalibration-info.spec.js b/src/layouts/recalibration-info/recalibration-info.spec.js
index e564a2565..36fd934c6 100644
--- a/src/layouts/recalibration-info/recalibration-info.spec.js
+++ b/src/layouts/recalibration-info/recalibration-info.spec.js
@@ -28,7 +28,7 @@ describe("recalibration-info.vue", () => {
test("renders navbar component", () => {
const { wrapper } = setupMocks();
- expect(wrapper.findComponent({ name: "insuranceNavBar" }).exists()).toBe(true);
+ expect(wrapper.findComponent({ name: "navbar" }).exists()).toBe(true);
});
test("renders Form component", () => {
diff --git a/src/layouts/recalibration-info/recalibration-info.vue b/src/layouts/recalibration-info/recalibration-info.vue
index e1fe2e0ed..8666db280 100644
--- a/src/layouts/recalibration-info/recalibration-info.vue
+++ b/src/layouts/recalibration-info/recalibration-info.vue
@@ -8,15 +8,34 @@
-
-
-
+
+
![]()
+
![]()
+
+
+
+
+
+
+
+
@@ -27,27 +46,34 @@
+
+