@@ -341,10 +341,9 @@ describe('Poker Room Service E2E', () => {
341341 const out = sent . pop ( ) ;
342342 const flat = out . kb . inline_keyboard . flat ( ) ;
343343 const callbacks = flat . map ( ( b : any ) => b . callback_data ) ;
344- expect ( callbacks ) . toContain ( 'g.pk.r.ck' ) ;
345- expect ( callbacks ) . toContain ( 'g.pk.r.rs' ) ;
346- expect ( callbacks ) . toContain ( 'g.pk.r.fd' ) ;
347- expect ( callbacks ) . not . toContain ( 'g.pk.r.cl' ) ;
344+ // When playing, should show refresh and show details buttons
345+ expect ( callbacks ) . toContain ( 'g.pk.r.in' ) ;
346+ expect ( callbacks . some ( cb => cb . includes ( 'detailed=' ) ) ) . toBe ( true ) ;
348347 expect ( out . text ) . toMatch ( / 🎯 / ) ;
349348 } ) ;
350349
@@ -403,10 +402,9 @@ describe('Poker Room Service E2E', () => {
403402 const kb = sent . pop ( ) ;
404403 const flat = kb . inline_keyboard . flat ( ) ;
405404 const callbacks = flat . map ( ( b : any ) => b . callback_data ) ;
406- expect ( callbacks ) . toContain ( 'g.pk.r.cl' ) ;
407- expect ( callbacks ) . toContain ( 'g.pk.r.rs' ) ;
408- expect ( callbacks ) . toContain ( 'g.pk.r.fd' ) ;
409- expect ( callbacks ) . not . toContain ( 'g.pk.r.ck' ) ;
405+ // When playing, should show refresh and show details buttons
406+ expect ( callbacks ) . toContain ( 'g.pk.r.in' ) ;
407+ expect ( callbacks . some ( cb => cb . includes ( 'detailed=' ) ) ) . toBe ( true ) ;
410408 } ) ;
411409 it ( 'should broadcast room info to all players successfully' , async ( ) => {
412410 // Arrange
0 commit comments