test(tui): TestBackend render tests for colibri-tui dashboard #171
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "test/tui-render-backend"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds
TestBackendheadless render tests forcolibri-tui— the dashboard had unit tests on its helper logic but zero coverage of actual rendering. Now verified it draws without panic and shows the right content.Tests (10 total, 5 new render tests):
●icon⚠icon (distinct render branch)Uses the idiomatic ratatui
TestBackend+ a buffer-to-text flatten so assertions are on content, not exact cell coordinates.Still not covered (needs a one-time manual smoke, not automatable here): the live
DaemonClientconnect → poll → snapshot-parse path. These tests setapp.snapshotdirectly. So this proves rendering, not the end-to-end connection.Verified:
cargo test -p colibri-glasspane-tui→ 10 passed; fmt clean.🤖 Generated with Claude Code