diff --git a/src/common-components/radio-question/radio-question.spec.js b/src/common-components/button-question/button-question.spec.js similarity index 53% rename from src/common-components/radio-question/radio-question.spec.js rename to src/common-components/button-question/button-question.spec.js index de6458122..df7b834c8 100644 --- a/src/common-components/radio-question/radio-question.spec.js +++ b/src/common-components/button-question/button-question.spec.js @@ -1,10 +1,10 @@ import { shallowMount } from "@vue/test-utils"; -import radioQuestion from "@/common-components/radio-question/radio-question"; +import buttonQuestion from "@/common-components/button-question/button-question"; -describe("radioQuestion.vue", () => { - it("Should render the 'questionText' prop value as a span value for the radio question and the 'answer' values should render as text values for radio components.", async () => { +describe("buttonQuestion.vue", () => { + it("Should render the 'questionText' prop value as a span value for the button question and the 'answer' values should render as text values for button components.", async () => { // Act - const wrapper = shallowMount(radioQuestion); + const wrapper = shallowMount(buttonQuestion); await wrapper.setProps({ questionText: "Question Text", answers: ["2023", "2022", "2021"], @@ -16,8 +16,8 @@ describe("radioQuestion.vue", () => { expect(wrapper.find(".needed_car_info-text").text()).toEqual( "Question Text" ); - const radioButtons = wrapper.findAllComponents('[data-test="radio"]'); - expect(radioButtons.length).toBe(3); + const buttonButtons = wrapper.findAllComponents('[data-test="button"]'); + expect(buttonButtons.length).toBe(3); expect(wrapper.props().modelValue).toBe("2020"); }); }); diff --git a/src/common-components/button-question/button-question.vue b/src/common-components/button-question/button-question.vue new file mode 100644 index 000000000..97ebf1310 --- /dev/null +++ b/src/common-components/button-question/button-question.vue @@ -0,0 +1,48 @@ + + + diff --git a/src/common-components/radio-question/radio-question.vue b/src/common-components/radio-question/radio-question.vue deleted file mode 100644 index 2c088fcc7..000000000 --- a/src/common-components/radio-question/radio-question.vue +++ /dev/null @@ -1,58 +0,0 @@ - - - diff --git a/src/common-components/vehicle-banner/vehicle-banner.vue b/src/common-components/vehicle-banner/vehicle-banner.vue index 32caa82f8..51e8d8aa3 100644 --- a/src/common-components/vehicle-banner/vehicle-banner.vue +++ b/src/common-components/vehicle-banner/vehicle-banner.vue @@ -1,5 +1,5 @@