Skip to content

Commit 5d506bf

Browse files
committed
fix cypress
Signed-off-by: gitdallas <5322142+gitdallas@users.noreply.github.com>
1 parent 72ac0d1 commit 5d506bf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/react-integration/cypress/integration/tableselectable.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ describe('Table Selectable Test', () => {
1717

1818
it('Test selectable checkbox', () => {
1919
for (let i = 1; i <= 3; i++) {
20-
cy.get(`tbody tr:nth-child(${i}) .pf-v6-c-table__check > label > input`).check();
20+
cy.get(`tbody tr:nth-child(${i}) input[type="checkbox"]`).check();
2121
}
2222

2323
for (let i = 1; i <= 3; i++) {
24-
cy.get(`tbody tr:nth-child(${i}) .pf-v6-c-table__check > label > input`).should('be.checked');
24+
cy.get(`tbody tr:nth-child(${i}) input[type="checkbox"]`).should('be.checked');
2525
}
2626
});
2727

@@ -30,14 +30,14 @@ describe('Table Selectable Test', () => {
3030
cy.get('input[name=selectVariant][value=radio]').click();
3131

3232
for (let i = 1; i <= 3; i++) {
33-
cy.get(`tbody tr:nth-child(${i}) .pf-v6-c-table__check > label > input`).check();
33+
cy.get(`tbody tr:nth-child(${i}) input[type="radio"]`).check();
3434
}
3535
// Only last radio input should be checked in the end of the iteration
3636
for (let i = 1; i <= 3; i++) {
3737
if (i < 3) {
38-
cy.get(`tbody tr:nth-child(${i}) .pf-v6-c-table__check > label > input`).should('not.be.checked');
38+
cy.get(`tbody tr:nth-child(${i}) input[type="radio"]`).should('not.be.checked');
3939
} else {
40-
cy.get(`tbody tr:nth-child(${i}) .pf-v6-c-table__check > label > input`).should('be.checked');
40+
cy.get(`tbody tr:nth-child(${i}) input[type="radio"]`).should('be.checked');
4141
}
4242
}
4343
});

0 commit comments

Comments
 (0)