24 lines
699 B
YAML
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.
|