diff --git a/src/digital-components/textbox-question/textbox-question.spec.js b/src/digital-components/textbox-question/textbox-question.spec.js index f7a31e03..fef8bca5 100644 --- a/src/digital-components/textbox-question/textbox-question.spec.js +++ b/src/digital-components/textbox-question/textbox-question.spec.js @@ -722,38 +722,6 @@ describe('TextboxQuestion', () => { expect(wrapper.emitted('update:modelValue')[0]).toEqual([newValue]); // emitted with expected payload }); }); - describe('labelText', () => { - test('should return the question text with no break characters if disableAutoFill is true', () => { - // Arrange - const disableAutoFill = true; - const wrapper = shallowMount(textboxQuestion, { - propsData: { disableAutoFill }, - mixins: [mockMixin], - global: { - directives: { maska: jest.fn() } - } - }); - // TODO this seems like strange behavior to me - const expectedLabelText = 'Q⁠uestion T⁠ext'; - - // Assert - expect(wrapper.vm.labelText).toBe(expectedLabelText); - }); - test('should return the question text as it is if disableAutoFill is false', () => { - // Arrange - const disableAutoFill = false; - const wrapper = shallowMount(textboxQuestion, { - propsData: { disableAutoFill }, - mixins: [mockMixin], - global: { - directives: { maska: jest.fn() } - } - }); - - // Assert - expect(wrapper.vm.labelText).toBe(questionText); - }); - }); }); describe('watch', () => { diff --git a/src/digital-components/textbox-question/textbox-question.vue b/src/digital-components/textbox-question/textbox-question.vue index 09ccf253..36b37b69 100644 --- a/src/digital-components/textbox-question/textbox-question.vue +++ b/src/digital-components/textbox-question/textbox-question.vue @@ -8,7 +8,7 @@ :aria-label="questionText" class="form-label" :class="[questionAlignment === 'center' ? 'text-center w-100 mb-5' : '']" - v-html="labelText"> + v-html="questionText">