diff --git a/test/widgets/autocomplete_test.dart b/test/widgets/autocomplete_test.dart index 24ae2dba83..8c6514f5ee 100644 --- a/test/widgets/autocomplete_test.dart +++ b/test/widgets/autocomplete_test.dart @@ -224,6 +224,9 @@ void main() { await tester.enterText(composeInputFinder, 'hi :'); await tester.enterText(composeInputFinder, 'hi :z'); await tester.pump(); + // Add an extra pump to account for any potential frame delays introduced + // by the post frame callback in RawAutocomplete's implementation. + await tester.pump(); checkEmojiShown(expected: true, zzzOption); checkEmojiShown(expected: true, buzzingOption); checkEmojiShown(expected: true, zulipOption);