diff --git a/src/layouts/molding-questions/molding-questions.vue b/src/layouts/molding-questions/molding-questions.vue index 3fdce88e..cb0f4f04 100644 --- a/src/layouts/molding-questions/molding-questions.vue +++ b/src/layouts/molding-questions/molding-questions.vue @@ -10,8 +10,6 @@ v-model="selectedAnswers" isRequired :isMetaValid="meta.valid" - :alertFewMoreQuestionsHeader="AlertFewMoreQuestionsHeader" - :alertFewMoreQuestionsCopy="AlertFewMoreQuestionsCopy" :questionsData="questionsData" :validationRules="rules.optionRequired" :index="currentGlassIndex" @@ -71,18 +69,6 @@ export default { }; }, computed: { - AlertFewMoreQuestionsHeader() { - return this.getCmsContent( - 'AdditionalPartsQuestionsAlert', - 'HeadlineText' - ); - }, - AlertFewMoreQuestionsCopy() { - return this.getCmsContent( - 'AdditionalPartsQuestionsAlert', - 'BodyText' - ); - }, partsOrQuestionsData() { return useMainStore().pageData(issPageValues.MOLDING_QUESTIONS).partsOrQuestions; } diff --git a/src/router/router.spec.js b/src/router/router.spec.js index 598e3912..ee35151a 100644 --- a/src/router/router.spec.js +++ b/src/router/router.spec.js @@ -36,4 +36,19 @@ describe('Router', () => { // Assert expect(router.push.mock.calls[0][0].state).toBe(parameters); }); + + it('Should route from CAPABILITY_QUESTIONS to BAILOUT_PAGE on CLICKED_NEED_HELP_WITH_BAILOUT', () => { + const scenario = navigationScenarios.CLICKED_NEED_HELP_WITH_BAILOUT; + const currentRoute = { query: { issPage: issPageValues.CAPABILITY_QUESTIONS } }; + + router.push = jest.fn(); + + // Act + router.navigate(scenario, currentRoute); + + // Assert + expect(router.push).toHaveBeenCalled(); + + expect(router.push.mock.calls[0][0].query.issPage).toBe(issPageValues.BAILOUT_PAGE); + }); });