@@ -51,47 +51,49 @@ describe('BLOCK PRODUCTION WON SLOTS TABLE', () => {
5151 . its ( 'store' )
5252 . then ( getBPWonSlots )
5353 . then ( ( state : BlockProductionWonSlotsState ) => {
54+ cy . log ( state . slots . toString ( ) ) ;
55+ cy . log ( condition ( state ) . toString ( ) ) ;
5456 if ( condition ( state ) ) {
5557
5658 // First, let's see if the main table exists
5759 cy . get ( 'mina-block-production-won-slots-table' , { timeout : 15000 } )
5860 . should ( 'exist' )
5961 . then ( ( ) => {
60- console . log ( '✅ Main table element found' ) ;
62+ cy . log ( '✅ Main table element found' ) ;
6163 } ) ;
6264
6365 // Check if .head exists
6466 cy . get ( 'mina-block-production-won-slots-table .head' , { timeout : 15000 } )
6567 . should ( 'exist' )
6668 . then ( ( $head ) => {
67- console . log ( '✅ Table head found, length:' , $head . length ) ;
68- console . log ( 'Head HTML:' , $head . html ( ) ) ;
69+ cy . log ( '✅ Table head found, length:' , $head . length ) ;
70+ cy . log ( 'Head HTML:' , $head . html ( ) ) ;
6971 } ) ;
7072
7173 // Check all spans in head
7274 cy . get ( 'mina-block-production-won-slots-table .head > span' )
7375 . should ( 'exist' )
7476 . then ( ( $spans ) => {
75- console . log ( '✅ Header spans found, count:' , $spans . length ) ;
77+ cy . log ( '✅ Header spans found, count:' , $spans . length ) ;
7678 $spans . each ( ( index , span ) => {
77- console . log ( `Span ${ index + 1 } :` , span . textContent , 'Visible:' , Cypress . $ ( span ) . is ( ':visible' ) ) ;
79+ cy . log ( `Span ${ index + 1 } :` , span . textContent , 'Visible:' , Cypress . $ ( span ) . is ( ':visible' ) ) ;
7880 } ) ;
7981 } ) ;
8082
8183 // Try the exact failing selector
8284 cy . get ( 'mina-block-production-won-slots-table .head > span:nth-child(1)' , { timeout : 5000 } )
8385 . should ( 'exist' )
8486 . then ( ( $span ) => {
85- console . log ( '✅ First span found:' , $span . text ( ) ) ;
86- console . log ( 'Is visible:' , $span . is ( ':visible' ) ) ;
87- console . log ( 'Has click handler:' , $span . prop ( 'onclick' ) !== null ) ;
87+ cy . log ( '✅ First span found:' , $span . text ( ) ) ;
88+ cy . log ( 'Is visible:' , $span . is ( ':visible' ) ) ;
89+ cy . log ( 'Has click handler:' , $span . prop ( 'onclick' ) !== null ) ;
8890 } ) ;
8991
9092 // Compare with working row selector
9193 cy . get ( 'mina-block-production-won-slots-table .row:not(.head)' )
9294 . should ( 'exist' )
9395 . then ( ( $rows ) => {
94- console . log ( '✅ Table rows found, count:' , $rows . length ) ;
96+ cy . log ( '✅ Table rows found, count:' , $rows . length ) ;
9597 } ) ;
9698
9799 }
0 commit comments