test(tui): TestBackend render tests for colibri-tui dashboard #171

Merged
clawdie merged 3 commits from test/tui-render-backend into main 2026-06-24 14:46:06 +02:00

3 commits

Author SHA1 Message Date
57e3f30f9c test(tui): add stalled-pane + tiny-terminal render tests
Some checks failed
CI / rust (pull_request) Has been cancelled
CI / markdown (pull_request) Has been cancelled
CI / port (pull_request) Has been cancelled
CI / agent-jail-pkgs (pull_request) Has been cancelled
Two more TestBackend render tests on top of the connecting/populated/empty set:
- render_stalled_pane_shows_warning_icon — covers the distinct stalled branch
  (state_icon → ⚠), which the healthy-Working test (●) didn't exercise.
- render_does_not_panic_on_tiny_terminal — renders at 20x5 to guard against
  cramped-layout panics (a classic ratatui footgun).

10 tests pass; fmt clean.
2026-06-24 14:45:30 +02:00
ac0a77c82c force hook run 2026-06-24 14:29:18 +02:00
4a475d88a7 test(tui): add TestBackend render tests — connecting, snapshot, no-panic
Closes the 'compiles but never verified to draw' gap:
- render_connecting_state_shows_connecting_text — asserts 'connecting…'
  and 'colibri-harness' title render before daemon connects
- render_with_snapshot_shows_panes_and_agent — asserts pane id, agent
  name, state label, and state icon appear in rendered buffer
- render_does_not_panic_on_empty_snapshot — smoke test for the
  snapshot=None path

All three use ratatui::TestBackend (no terminal needed, CI-friendly).
2026-06-24 14:28:21 +02:00