From 2ede50d9734ecf6de853ce12b9d502f4cf7dc59b Mon Sep 17 00:00:00 2001 From: Katie Kroell Date: Wed, 31 Jan 2024 15:11:17 -0500 Subject: [PATCH] shell test for navigation --- src/layouts/tpa-confirmation/tpa-confirmation.spec.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/layouts/tpa-confirmation/tpa-confirmation.spec.js b/src/layouts/tpa-confirmation/tpa-confirmation.spec.js index c9ecafd2..5b58038c 100644 --- a/src/layouts/tpa-confirmation/tpa-confirmation.spec.js +++ b/src/layouts/tpa-confirmation/tpa-confirmation.spec.js @@ -9,6 +9,7 @@ import { fetchCmsContentForPage } from '@/helpers/cms-content-helper'; import { mount } from '@vue/test-utils'; import { createTestingPinia } from '@pinia/testing'; import bailoutMessage from '@/constants/bailoutMessage'; +import navigationScenarios from '@/router/router-constants/navigation-scenarios.js'; jest.mock('@/helpers/layout-helper.js', () => jest.fn()); @@ -352,7 +353,17 @@ describe('TPAConfirmation.vue', () => { }); // TODO: Add tests for forward navigation to carrier URL describe('Navigation', () => { + // test('Forward button action, navigate forward with CLICKED_FORWARD scenario', () => { + // // Arrange + // const { wrapper } = getMountedComponent({}); + // // Act + // wrapper.vm.forwardButtonAction(); + + // // Assert + // expect(wrapper.vm.$router.navigate) + // .toHaveBeenCalledWith(navigationScenarios.CLICKED_FORWARD); + // }); }); }); });