Skip to content

Commit 7bd509d

Browse files
chrisbobbegnprice
authored andcommitted
msglist test [nfc]: Move a Finder helper outward for reuse
1 parent 3974ff1 commit 7bd509d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/widgets/message_list_test.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ void main() {
129129
return findScrollView(tester).controller;
130130
}
131131

132+
final contentInputFinder = find.byWidgetPredicate(
133+
(widget) => widget is TextField && widget.controller is ComposeContentController);
134+
132135
group('MessageListPage', () {
133136
testWidgets('ancestorOf finds page state from message', (tester) async {
134137
await setupMessageListPage(tester,
@@ -1837,9 +1840,6 @@ void main() {
18371840
final topicNarrow = eg.topicNarrow(stream.streamId, topic);
18381841
const content = 'outbox message content';
18391842

1840-
final contentInputFinder = find.byWidgetPredicate(
1841-
(widget) => widget is TextField && widget.controller is ComposeContentController);
1842-
18431843
Finder outboxMessageFinder = find.widgetWithText(
18441844
OutboxMessageWithPossibleSender, content, skipOffstage: true);
18451845

0 commit comments

Comments
 (0)