The vuetify v-data-table component has a property called "show-select" that allows you to put a checkbox on every list item. The problem i have is that i need to check any element of the table for a Cypress test, but it haven't worked yet. I gave my table an id and tried using "tbody" element doing something like this:
cy.get("#dataTable").get("tbody").eq(1).click()
and:
cy.get("#dataTable").within(() =>{
cy.get("tbody").eq(1).click();
});
I also tried to use cypress browser tool to try to find the name of the element and it show me something like this:
cy.get('tbody > :nth-child(1) > :nth-child(1) > .v-data-table__checkbox > .v-icon')
but it didn't worked. I don't know how to do it and would be great if somebody helps me.