grok-build-upstream-mirror/crates/codegen/xai-grok-pager/tests/scenarios/mock_response.yaml
grokkybara[bot] c68e39f604 Publish harness and TUI open-source
initial sync from the monorepo
2026-07-16 06:46:02 +01:00

24 lines
699 B
YAML

name: mock-response
description: Validate a real prompt submission renders mocked assistant output and captures the resulting UI.
terminal:
rows: 40
cols: 110
mock:
response: "SCRIPTED_MOCK_RESPONSE rendered by the real pager from the local mock inference server."
steps:
- action: wait_for_text
text: Quit
timeout_ms: 20000
- action: type_text
text: "hello scripted tui"
- action: keys
keys: "<Enter>"
- action: wait_for_text
text: SCRIPTED_MOCK_RESPONSE
timeout_ms: 30000
- action: assert_chat_completion
- action: assert_not_contains
text: panicked
- action: screenshot
name: response
note: Prompt submission and mocked assistant response.