Skip to content
Snippets Groups Projects
Commit 64401f16 authored by LIOTIER MARION's avatar LIOTIER MARION
Browse files

add a test to count the checkboxes

parent 9e5e830e
No related branches found
No related tags found
No related merge requests found
......@@ -111,6 +111,8 @@ describe("MthGrid.vue ------ display global elements", () => {
expect(wrapper.find("table").exists()).toBe(true);
expect(wrapper.findAll("th").length).equals(headers.length + 1); // checkbox column
expect(wrapper.findAll("tbody > tr").length).equals(items.length);
// count checkboxes
expect(wrapper.findAll("input[type='checkbox']").length).equals(items.length + 1); // select all
});
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment