Updating testing for radioTest with new radio buttons
This commit is contained in:
parent
3b3af03d8f
commit
c92112e07f
1 changed files with 1 additions and 2 deletions
|
|
@ -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");
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue