From 62017c86392b046d746fb4fafef6742840477c5f Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Fri, 2 Oct 2026 02:16:44 -0400 Subject: feat: polish 'list' output, drop sitout command --- internal/game/casino_ux_test.go | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'internal/game/casino_ux_test.go') diff --git a/internal/game/casino_ux_test.go b/internal/game/casino_ux_test.go index 415df63..1a06f89 100644 --- a/internal/game/casino_ux_test.go +++ b/internal/game/casino_ux_test.go @@ -163,16 +163,19 @@ func TestPlayWithAmountJoinsAndBets(t *testing.T) { func TestTableStatusShowsStateAndRules(t *testing.T) { g, sess, conn := uxCasinoGame(t) g.executePlay(sess, []string{"bj"}, "play bj") + conn.data = nil g.executeTableStatus(sess, nil, "table") text := stripANSI(string(conn.data)) - if !strings.Contains(text, "LIMITS") || !strings.Contains(text, "Waiting for bets") { - t.Fatalf("status missing overview: %q", text) - } - // The table command carries the blackjack felt; the rules command (not a - // "table rules" subcommand) opens the help page. - if !strings.Contains(text, "BLACKJACK PAYS") { + // The table command carries the blackjack felt and nothing else: no + // balance, seat status, command menu, or rules reminder. + if !strings.Contains(text, "LIMITS") || !strings.Contains(text, "BLACKJACK PAYS") { t.Fatalf("table felt missing: %q", text) } + for _, clutter := range []string{"Available ", "Waiting for bets", "Learn to play", "stop", "rules"} { + if strings.Contains(text, clutter) { + t.Fatalf("table showed clutter %q: %q", clutter, text) + } + } } func TestWatchAndSpectatorDetailFlow(t *testing.T) { -- cgit v1.2.3