Skip to content

Add unit tests for src/state/ui.rs #27

Description

@ih8js-git

Why it needs tests: This handles the rendering layout and widget creation based on the AppState.

How to test it: ratatui provides a TestBackend specifically for this. You can construct an App in various states (e.g., AppState::Error, AppState::LoggedIn), pass it to render, and assert that the resulting terminal buffer contains the expected strings and colors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status
    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions