From c92112e07faa636d807f733b8c5a06c9f2302a63 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 23 Nov 2021 17:13:09 -0500 Subject: [PATCH] Updating testing for radioTest with new radio buttons --- src/common-components/radio-question/radio-question.spec.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/common-components/radio-question/radio-question.spec.js b/src/common-components/radio-question/radio-question.spec.js index da58ea8d1..eac0843e5 100644 --- a/src/common-components/radio-question/radio-question.spec.js +++ b/src/common-components/radio-question/radio-question.spec.js @@ -19,8 +19,7 @@ describe("radioQuestion.vue", () => { "Question Text" ); const radioButtons = wrapper.findAllComponents('[data-test="radio"]'); - expect(radioButtons[0].attributes("text")).toEqual("2023"); - expect(radioButtons[2].attributes("text")).toEqual("2021"); + expect(radioButtons.length).toBe(3); expect(typeof wrapper.props().chooseAnswer).toBe("function"); }); });