Skip to content

Commit 5e8d0a8

Browse files
committed
autocomplete test: Add extra pump in new test for new RawAutocomplete delay
Fixes zulip#1289.
1 parent efcf201 commit 5e8d0a8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/widgets/autocomplete_test.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,10 @@ void main() {
330330
text: 'some',
331331
selection: TextSelection(baseOffset: 1, extentOffset: 3)));
332332
await tester.pump();
333+
// Add an extra pump to account for any potential frame delays introduced
334+
// by the post frame callback in RawAutocomplete's implementation.
335+
await tester.pump();
336+
333337
check(controller.value)
334338
..text.equals('some')
335339
..selection.equals(

0 commit comments

Comments
 (0)