adjust composer typeahead test for the grown owned-command set
T-413 added 'mcp' (among others) to kClideOwnedCommands, which the composer unions onto the suggestion list (T-162) — '/m' now yields [mcp, memory, model], so reaching 'model' takes two arrow-downs. The test's intent (selection moves; Enter completes, never submits) is unchanged. Board: T-158 annotated — /usage is answerable headless on 2.1.175, unblocking its upstream blocker (see T-415). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -156,11 +156,16 @@ void main() {
|
||||
});
|
||||
|
||||
testWidgets('arrow-down + Enter completes the selected command (no submit)', (tester) async {
|
||||
// The composer unions kClideOwnedCommands onto the resolver's list
|
||||
// (T-162), so '/m' yields [mcp, memory, model] — 'mcp' joined the owned
|
||||
// set in T-413. Two arrow-downs reach 'model'.
|
||||
final submitted = await pumpWithCommands(tester, ['model', 'memory']);
|
||||
await tester.enterText(find.byType(EditableText), '/m'); // → [memory, model]
|
||||
await tester.enterText(find.byType(EditableText), '/m');
|
||||
await tester.pump();
|
||||
|
||||
await tester.sendKeyEvent(LogicalKeyboardKey.arrowDown); // select 'model'
|
||||
await tester.sendKeyEvent(LogicalKeyboardKey.arrowDown); // → 'memory'
|
||||
await tester.pump();
|
||||
await tester.sendKeyEvent(LogicalKeyboardKey.arrowDown); // → 'model'
|
||||
await tester.pump();
|
||||
await tester.sendKeyEvent(LogicalKeyboardKey.enter);
|
||||
await tester.pump();
|
||||
|
||||
Reference in New Issue
Block a user