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/radio-question/radio-question.vue b/src/common-components/button-question/button-question.vue similarity index 80% rename from src/common-components/radio-question/radio-question.vue rename to src/common-components/button-question/button-question.vue index 36f130e9f..97ebf1310 100644 --- a/src/common-components/radio-question/radio-question.vue +++ b/src/common-components/button-question/button-question.vue @@ -1,5 +1,5 @@