Files
cleveragents-core/robot/tui_input_integration.robot
T
HAL9000 636d6300d4 test(tui): add integration test coverage for tui module subcomponents
Added comprehensive Robot Framework integration tests for the tui module to improve test coverage across multiple test levels. Tests cover:
- tui.widgets: actor selection overlay, persona bar, prompt input, reference picker, slash command overlay, thought block, throbber, permission question, help panel overlay
- tui.input: input mode router, reference parser, shell executor
- tui.permissions: permission service, models, screen
- tui.persona: registry, schema, state management
- tui.shell_safety: safety service, danger level, pattern detector, pattern registry, dangerous patterns, warnings
- tui.search: fuzzy matcher and matching functionality
- tui.commands: command handler, slash catalog, first run handler, quote provider

These tests ensure that all tui submodules are properly initialized and functional at the integration level.

ISSUES CLOSED: #1928
2026-06-10 09:55:28 -04:00

43 lines
1.9 KiB
Plaintext

*** Settings ***
Library Process
Library String
*** Test Cases ***
TUI Input Modes Router Initialization
[Tags] tdd_issue tdd_issue_1928
${script}= Catenate SEPARATOR=\n
... from cleveragents.tui.input.modes import InputModeRouter
... router = InputModeRouter()
... # Verify router is initialized
... assert router is not None, "InputModeRouter should be initialized"
... print("input-mode-router-ok")
${result}= Run Process ${PYTHON} -c ${script} shell=False
Should Be Equal As Integers ${result.rc} 0
Should Contain ${result.stdout} input-mode-router-ok
TUI Input Reference Parser Functionality
[Tags] tdd_issue tdd_issue_1928
${script}= Catenate SEPARATOR=\n
... from cleveragents.tui.input.reference_parser import ReferenceParser
... parser = ReferenceParser()
... # Test parsing references
... text = "check @README and @config.yaml"
... refs = parser.parse(text)
... assert refs is not None, "Parser should return references"
... print("reference-parser-ok")
${result}= Run Process ${PYTHON} -c ${script} shell=False
Should Be Equal As Integers ${result.rc} 0
Should Contain ${result.stdout} reference-parser-ok
TUI Input Shell Executor Initialization
[Tags] tdd_issue tdd_issue_1928
${script}= Catenate SEPARATOR=\n
... from cleveragents.tui.input.shell_exec import ShellExecutor
... executor = ShellExecutor()
... # Verify executor is initialized
... assert executor is not None, "ShellExecutor should be initialized"
... print("shell-executor-ok")
${result}= Run Process ${PYTHON} -c ${script} shell=False
Should Be Equal As Integers ${result.rc} 0
Should Contain ${result.stdout} shell-executor-ok