Skip to content

Commit

Permalink
autocomplete test: Add extra pump for new delay in upstream RawAutoco…
Browse files Browse the repository at this point in the history
…mplete

The fixes to RawAutocomplete's options width in the Flutter framework:
  flutter/flutter#143249

introduces a one-frame delay, so this test will need an extra pump to
account for that.
  • Loading branch information
victorsanni authored and gnprice committed Jan 15, 2025
1 parent ab54810 commit 0bfa79d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/widgets/autocomplete_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0bfa79d

Please sign in to comment.