diff options
| author | historia <[not public]> | 2026-10-02 02:16:44 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-10-02 02:16:44 -0400 |
| commit | 62017c86392b046d746fb4fafef6742840477c5f (patch) | |
| tree | eab569e29e858ff79b8ce06caa9bacb28bc9ee81 /internal/game/casino_ux_test.go | |
| parent | d3a305d1d7962f82af2397760cf8008758bddd1d (diff) | |
| download | thehouseoficarus-62017c86392b046d746fb4fafef6742840477c5f.tar.gz | |
feat: polish 'list' output, drop sitout command
Diffstat (limited to 'internal/game/casino_ux_test.go')
| -rw-r--r-- | internal/game/casino_ux_test.go | 15 |
1 files changed, 9 insertions, 6 deletions
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) { |
