From a475434395a83bf03e4929e6dfd4b45d41b4fe9b Mon Sep 17 00:00:00 2001 From: bmauger Date: Tue, 14 Dec 2021 11:24:17 -0500 Subject: [PATCH] Update references to "radio" where possible/necessary. --- .../button-question/button-question.spec.js | 6 +- .../button-question/button-question.vue | 4 +- src/layouts/component-test/component-test.vue | 68 +++++++++---------- .../list-button-horizontal.spec.js | 6 +- .../list-button-horizontal.vue | 20 +++--- .../list-button/list-button.spec.js | 4 +- src/ux-components/list-button/list-button.vue | 14 ++-- src/ux-components/list-card/list-card.vue | 16 ++--- 8 files changed, 69 insertions(+), 69 deletions(-) diff --git a/src/common-components/button-question/button-question.spec.js b/src/common-components/button-question/button-question.spec.js index 4f7d3d342..df7b834c8 100644 --- a/src/common-components/button-question/button-question.spec.js +++ b/src/common-components/button-question/button-question.spec.js @@ -2,7 +2,7 @@ import { shallowMount } from "@vue/test-utils"; import buttonQuestion from "@/common-components/button-question/button-question"; describe("buttonQuestion.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 () => { + 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(buttonQuestion); await wrapper.setProps({ @@ -16,8 +16,8 @@ describe("buttonQuestion.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 index 78b75f3ea..97ebf1310 100644 --- a/src/common-components/button-question/button-question.vue +++ b/src/common-components/button-question/button-question.vue @@ -9,12 +9,12 @@
{{groupName}}
@@ -61,7 +61,7 @@
- +
- +
- +
- +
{ - it("Should render the 'radioID' prop value as the label and id value as well as the radio button value, groupName as the name value, and fire a click even that sets the display data attribute to true.", async () => { +describe("list-button.vue", () => { + it("Should render the 'buttonID' prop value as the label and id value as well as the button value, groupName as the name value, and fire a click even that sets the display data attribute to true.", async () => { // Act const wrapper = shallowMount(listButtonHorizontal, { propsData: { - radioID: "2023", + buttonID: "2023", groupName: "TestGroup", loaderColor: "blue", loaderPosition: "right", diff --git a/src/ux-components/list-button-horizontal/list-button-horizontal.vue b/src/ux-components/list-button-horizontal/list-button-horizontal.vue index 960a7b0e9..315a18995 100644 --- a/src/ux-components/list-button-horizontal/list-button-horizontal.vue +++ b/src/ux-components/list-button-horizontal/list-button-horizontal.vue @@ -1,11 +1,11 @@