Verify drafts and focus while inactive composers are hidden

This commit is contained in:
2026-11-07 02:58:28 +00:00
parent 9a065c4963
commit ba13c5a66d
@@ -151,7 +151,7 @@ void main() {
expect(_thread('b'), findsOneWidget);
expect(tester.state(_thread('a')), same(stateA));
expect(
tester.widget<EditableText>(_input('a')).controller.text,
tester.widget<EditableText>(_input('a', offstage: true)).controller.text,
'Phone draft A',
);
final workspace = tester.widget<ChatWorkspace>(find.byType(ChatWorkspace));
@@ -162,7 +162,10 @@ void main() {
await tester.pumpAndSettle();
expect(workspace.controller.activePane?.sessionId, 'a');
expect(
tester.widget<EditableText>(_input('b')).focusNode.hasFocus,
tester
.widget<EditableText>(_input('b', offstage: true))
.focusNode
.hasFocus,
isFalse,
);
expect(tester.state(_thread('a')), same(stateA));