Skip to content

Commit

Permalink
compose test: Set up compose box using enterContent
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
PIG208 committed Jan 24, 2025
1 parent c5b47b3 commit 0005944
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/widgets/compose_box_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ void main() {
// (When we check that the send button looks disabled, it should be because
// the file is uploading, not a pre-existing reason.)
await enterTopic(tester, narrow: narrow, topic: 'some topic');
controller!.content.value = const TextEditingValue(text: 'see image: ');
await enterContent(tester, 'see image: ');
await tester.pump();
}

Expand Down

0 comments on commit 0005944

Please sign in to comment.