Verify drafts and focus while inactive composers are hidden
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user