Skip to content

Commit 2aae200

Browse files
PIG208sm-sayedi
authored andcommitted
compose test: Set up compose box using enterContent
So the test is more realistic. A side effect of this is that the content input text field is focused afterwards. Signed-off-by: Zixuan James Li <[email protected]>
1 parent ab06258 commit 2aae200

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/widgets/compose_box_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,7 @@ void main() {
10561056
// (When we check that the send button looks disabled, it should be because
10571057
// the file is uploading, not a pre-existing reason.)
10581058
await enterTopic(tester, narrow: narrow, topic: 'some topic');
1059-
controller!.content.value = const TextEditingValue(text: 'see image: ');
1059+
await enterContent(tester, 'see image: ');
10601060
await tester.pump();
10611061
}
10621062

0 commit comments

Comments
 (0)