b588de18d6
Rebases the TUI prompt symbol fix onto the latest master, resolving conflicts with the TextArea→Input refactor and the dollar-prefix shell mode addition. Adds the missing CHANGELOG.md entry for #6431 and removes the now-obsolete tui_prompt_textarea feature/steps that tested the old TextArea-based implementation. ISSUES CLOSED: #6431
31 lines
997 B
Gherkin
31 lines
997 B
Gherkin
Feature: TUI prompt symbol reflects input mode
|
||
The prompt must display the correct mode symbol so users know
|
||
whether they are typing a normal message, a command, or shell input.
|
||
|
||
Scenario Outline: Symbol updates when mode changes
|
||
Given a TUI prompt widget
|
||
When I set the TUI prompt value to "<input>"
|
||
Then the TUI prompt symbol should be "<symbol>"
|
||
|
||
Examples:
|
||
| input | symbol |
|
||
| hello | ❯ |
|
||
| /help | / |
|
||
| !ls | $ |
|
||
|
||
Scenario: Consuming text resets the prompt symbol
|
||
Given a TUI prompt widget
|
||
When I set the TUI prompt value to "/metrics"
|
||
And I consume the TUI prompt text
|
||
Then the TUI prompt symbol should be "❯"
|
||
And the consumed TUI prompt text should be "/metrics"
|
||
|
||
Scenario: Multi-line input toggles the multi-line prompt symbol
|
||
Given a TUI prompt widget
|
||
When I set the TUI prompt value to
|
||
"""
|
||
line one
|
||
line two
|
||
"""
|
||
Then the TUI prompt symbol should be "☰"
|