Skip to content

Commit

Permalink
Call pumpAndSettle to fix one Cupertino test
Browse files Browse the repository at this point in the history
  • Loading branch information
bleroux committed Dec 8, 2023
1 parent 47192de commit a29f89a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/flutter/test/cupertino/text_field_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -664,8 +664,6 @@ void main() {
selectionColor: selectionColor,
cursorColor: cursorColor,
child: Column(
// TODO(bleroux): investigate why the test fail without setting the mainAxisAlignment.
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
CupertinoTextField(
key: key1,
Expand All @@ -689,7 +687,7 @@ void main() {

await tester.tap(find.byKey(key2));
await tester.enterText(find.byKey(key2), 'dcba');
await tester.pump();
await tester.pumpAndSettle();

// Focus and selection is active on first TextField, so the second TextFields
// selectionColor should be dropped.
Expand Down

0 comments on commit a29f89a

Please sign in to comment.