File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
packages/react-integration/cypress/integration Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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 } ) ;
You can’t perform that action at this time.
0 commit comments