diff --git a/app/test/features/chat/chat_split_integration_test.dart b/app/test/features/chat/chat_split_integration_test.dart index e1e05dd5..3aaac7e9 100644 --- a/app/test/features/chat/chat_split_integration_test.dart +++ b/app/test/features/chat/chat_split_integration_test.dart @@ -151,7 +151,7 @@ void main() { expect(_thread('b'), findsOneWidget); expect(tester.state(_thread('a')), same(stateA)); expect( - tester.widget(_input('a')).controller.text, + tester.widget(_input('a', offstage: true)).controller.text, 'Phone draft A', ); final workspace = tester.widget(find.byType(ChatWorkspace)); @@ -162,7 +162,10 @@ void main() { await tester.pumpAndSettle(); expect(workspace.controller.activePane?.sessionId, 'a'); expect( - tester.widget(_input('b')).focusNode.hasFocus, + tester + .widget(_input('b', offstage: true)) + .focusNode + .hasFocus, isFalse, ); expect(tester.state(_thread('a')), same(stateA));