返回 CodeWhale
feat-011-dispatch-precedence.feature
根目录 / crates / tui / tests / features / feat-011-dispatch-precedence.feature
1 Feature: FEAT-011 Dispatch Precedence And Error Semantics
2
3 Scenario: AT-004 User command shadows built-in canonical name
4 Given a workspace with a user command shadowing a built-in canonical name
5 When the user runs "/help config"
6 Then the user command executes instead of the built-in
7 And no built-in /help side effect occurs
8
9 Scenario: AT-005 User command shadows built-in alias
10 Given a workspace with a user command shadowing a built-in alias
11 When the user runs the shadowed alias
12 Then the user command executes
13 And the built-in canonical name remains reachable
14
15 Scenario: AT-006 Absent user command falls back to built-in
16 Given a workspace with a previously loaded user command
17 When the user command file is removed and the command is invoked again
18 Then the built-in command executes without a user-command error message
19
20 Scenario: AT-007 Invalid user command produces user error without fallback
21 Given a workspace with an invalid user command
22 When the user runs the invalid command
23 Then a user-command-specific error is returned
24 And no built-in fallback occurs
25
25 lines Plain Text