diff --git a/src/layouts/duplicate-check/duplicate-check.spec.js b/src/layouts/duplicate-check/duplicate-check.spec.js index c6cce7c8..5662fe97 100644 --- a/src/layouts/duplicate-check/duplicate-check.spec.js +++ b/src/layouts/duplicate-check/duplicate-check.spec.js @@ -55,7 +55,7 @@ function getMountedComponent(mainInitialState = {}, initialData = {}, methodToRu return { wrapper }; } -const duplicateOrderText = 'Finish Existing Claim'; +const duplicateOrderText = 'Finish existing claim'; describe('duplicateCheck.vue', () => { describe('Rendering', () => { @@ -313,26 +313,6 @@ describe('duplicateCheck.vue', () => { // Assert expect(wrapper.vm.getNewOrderSelectionName).toBe(''); }); - test('answersFromCms first item has Name property => returns expected', () => { - // Arrange - const mountOptions = getMountOptions({ - router: { navigate: jest.fn() } - }); - const expectedName = getRandomString(6, 6); - const answersFromCmsValue = [{ Name: expectedName }]; - mountOptions.mixins = [{ - methods: { - getCmsContent: jest.fn().mockImplementation((_, label) => (label === 'Answers' - ? answersFromCmsValue - : '')) - } - }]; - - const wrapper = shallowMount(duplicateCheck, mountOptions); - - // Assert - expect(wrapper.vm.getNewOrderSelectionName).toBe(expectedName); - }); }); }); diff --git a/src/layouts/duplicate-check/duplicate-check.vue b/src/layouts/duplicate-check/duplicate-check.vue index 9df50bc7..c8c38623 100644 --- a/src/layouts/duplicate-check/duplicate-check.vue +++ b/src/layouts/duplicate-check/duplicate-check.vue @@ -23,11 +23,16 @@ class="duplicate-check-question" :cmsWidgetName="widget.existingOrNewQuestion" :questionText="questionText" - :answers="answers" + :answers="duplicateOrders" groupName="existingOrNewQuestionOption" buttonTypeString="listButton" isRequired :validationRules="rules.selectionRequired" /> +