From 8d20205e53b9c6498621155f53368a7a05cd02ad Mon Sep 17 00:00:00 2001 From: Bill Richardson Date: Wed, 22 May 2024 13:33:17 -0400 Subject: [PATCH] Remove forced NoBreak's and associated test --- .../dropdown-question.spec.js | 26 ------------------- .../dropdown-question/dropdown-question.vue | 22 +--------------- 2 files changed, 1 insertion(+), 47 deletions(-) diff --git a/src/digital-components/dropdown-question/dropdown-question.spec.js b/src/digital-components/dropdown-question/dropdown-question.spec.js index d5885428..d2af8520 100644 --- a/src/digital-components/dropdown-question/dropdown-question.spec.js +++ b/src/digital-components/dropdown-question/dropdown-question.spec.js @@ -46,32 +46,6 @@ describe('dropdownQuestion.vue', () => { expect(label.text()).toContain(questionText); }); - // eslint-disable-next-line max-len - it("Should render the 'questionText' data value with '⁠' after the first character of each word in the label text when disableAutoFill is true.", async () => { - // Arrange - const wrapper = shallowMount(dropdownQuestion, { - propsData: { - options: {}, - disableAutoFill: true - }, - mixins: [mockMixin] - }); - - // Mock CMS content ... - // Trust me, the below instance of the string "Q⁠uestion Text" - // actually has the & NoBreak; in it.You just can't see it - // Don't believe me? Copy and paste it into Google. - // Then inspect the search field element in Dev Tools, - // you will see "Q⁠uestion T⁠ext" - const expectedQuestionText = 'Q⁠uestion T⁠ext'; - - // Act - const label = wrapper.find('label'); - - // Assert - expect(label.text()).toContain(expectedQuestionText); - }); - it('Should return input id as the id of the select field', async () => { // Arrange const wrapper = shallowMount(dropdownQuestion, { diff --git a/src/digital-components/dropdown-question/dropdown-question.vue b/src/digital-components/dropdown-question/dropdown-question.vue index 7e9bfa50..643a67a3 100644 --- a/src/digital-components/dropdown-question/dropdown-question.vue +++ b/src/digital-components/dropdown-question/dropdown-question.vue @@ -6,7 +6,7 @@ :for="inputId" :aria-label="questionText" class="form-label" - v-html="labelText"> + v-html="questionText">