| 1 | @long-running |
| 2 | # [LONG RUNNING] Opt-in core command acceptance workflows. Run with: |
| 3 | # cargo test -p codewhale-tui --bin codewhale-tui --features long-running-tests commands::groups::core::acceptance -- --test-threads=1 |
| 4 | Feature: Core command visible surfaces |
| 5 | |
| 6 | Scenario: Core informational commands write visible transcript messages |
| 7 | Given a CodeWhale core command workspace |
| 8 | When the user runs the core command "/help links" |
| 9 | Then the message window should include "Usage: /links" |
| 10 | And the message window should include "Aliases: dashboard, api" |
| 11 | When the user runs the core command "/links" |
| 12 | Then the message window should include "https://platform.deepseek.com" |
| 13 | When the user runs the core command "/workspace" |
| 14 | Then the message window should include "Current workspace:" |
| 15 | When the user runs the core command "/home" |
| 16 | Then the message window should include "Codewhale" |
| 17 | And the message window should include "/links" |
| 18 | |
| 19 | Scenario: Core state commands report visible changes |
| 20 | Given a CodeWhale core command workspace |
| 21 | When the user runs the core command "/model auto" |
| 22 | Then the message window should include "Model changed:" |
| 23 | And the message window should include "auto" |
| 24 | When the user runs the core command "/translate" |
| 25 | Then the message window should include "Output translation enabled" |
| 26 | When the user runs the core command "/translate" |
| 27 | Then the message window should include "Output translation disabled" |
| 28 | |
| 29 | Scenario: Clear replaces prior transcript with visible confirmation |
| 30 | Given a CodeWhale core command workspace with one visible user message |
| 31 | When the user runs the core command "/clear" |
| 32 | Then the message window should include "Conversation cleared" |
| 33 | And the message window should not include "Remember the whale migration" |
| 34 | |
| 35 | Scenario: Persistent work commands report visible dispatch requests |
| 36 | Given a CodeWhale core command workspace |
| 37 | When the user runs the core command "/agent 2 summarize logs" |
| 38 | Then the message window should include "Opening persistent sub-agent at depth 2" |
| 39 | When the user runs the core command "/rlm 1 inspect command extraction" |
| 40 | Then the message window should include "Loading that into a persistent working context" |
| 41 | When the user runs the core command "/fleet help" |
| 42 | Then the message window should include "/fleet workers (and /subagents) shows sub-agents in the current TUI session only" |
| 43 | And the message window should include "CLI: codewhale fleet status" |
| 44 |