Files
cleveragents-core/features/tui_help_panel_overlay_coverage.feature
brent.edwards 0ae733d01f feat(tui): implement help panel (F1) with context-sensitive help
Add a dedicated TUI help overlay toggled by F1 and resolve its content from the current prompt mode for main-screen, slash-command, reference, and shell contexts.

Extend Behave and Robot coverage for the new help-panel widget, app wiring, context switching, and toggle behavior.

ISSUES CLOSED: #1013
2026-04-01 21:51:14 +00:00

28 lines
1.3 KiB
Gherkin

Feature: TUI Help Panel Overlay Coverage
Scenarios exercising the context-sensitive help overlay widget.
Scenario: resolve_help_context detects the active prompt mode
When I resolve help context for an empty prompt
Then the resolved help context should be "Main Screen"
When I resolve help context for prompt text "/persona list"
Then the resolved help context should be "Slash Commands"
When I resolve help context for prompt text "inspect @README.md"
Then the resolved help context should be "Reference Picker"
When I resolve help context for prompt text "!ls"
Then the resolved help context should be "Shell Mode"
Scenario: help panel overlay renders context-specific content
Given a fresh help panel overlay
When I show help for context "Main Screen"
Then the standalone help panel text should contain "Help: Main Screen"
And the standalone help panel text should contain "ctrl+q"
And the standalone help panel text should contain "enter"
Scenario: help panel overlay toggle hides the current context
Given a fresh help panel overlay
When I toggle help for context "Slash Commands"
Then the help panel should be visible
And the standalone help panel text should contain "Help: Slash Commands"
When I toggle help for context "Slash Commands"
Then the help panel should be hidden