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/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 @@ + +