Skip to content

Commit

Permalink
Add extra pump
Browse files Browse the repository at this point in the history
  • Loading branch information
victorsanni committed Dec 20, 2024
1 parent f2458b1 commit a8ae346
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/widgets/autocomplete_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,10 @@ 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 the _RawAutocompleteOptions
// implementation.
await tester.pump();
checkEmojiShown(expected: true, zzzOption);
checkEmojiShown(expected: true, buzzingOption);
checkEmojiShown(expected: true, zulipOption);
Expand Down

0 comments on commit a8ae346

Please sign in to comment.