40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
name: html-entities
|
|
description: >
|
|
Regression: HTML character entities in assistant prose must
|
|
render decoded (`<` -> `<`, `>` -> `>`, `&` -> `&`, `—` -> em
|
|
dash) rather than as literal `<`/`>` text in the real pager.
|
|
terminal:
|
|
rows: 40
|
|
cols: 110
|
|
mock:
|
|
response: "Result is vec<T> with a & b and an — dash."
|
|
steps:
|
|
- action: wait_for_text
|
|
text: Quit
|
|
timeout_ms: 20000
|
|
- action: type_text
|
|
text: "show entities"
|
|
- action: keys
|
|
keys: "<Enter>"
|
|
# The decoded angle brackets only appear once the entity transform runs.
|
|
- action: wait_for_text
|
|
text: "vec<T>"
|
|
timeout_ms: 30000
|
|
- action: assert_contains
|
|
text: "a & b"
|
|
- action: assert_contains
|
|
text: "an — dash"
|
|
# The raw entity source must not survive to the screen.
|
|
- action: assert_not_contains
|
|
text: "<"
|
|
- action: assert_not_contains
|
|
text: ">"
|
|
- action: assert_not_contains
|
|
text: "&"
|
|
- action: assert_not_contains
|
|
text: "—"
|
|
- action: assert_not_contains
|
|
text: panicked
|
|
- action: screenshot
|
|
name: html-entities
|
|
note: Assistant prose with decoded HTML entities.
|