diff --git a/lib/src/act/act.dart b/lib/src/act/act.dart index 70832f9b..ddd8d6aa 100644 --- a/lib/src/act/act.dart +++ b/lib/src/act/act.dart @@ -43,6 +43,15 @@ class Act { binding.focusedEditable = editableTextState; await binding.pump(); + if (!kIsWeb) { + // Fix for enterText() not working in release mode on real iOS devices. + // See https://github.com/flutter/flutter/pull/89703 + // Also a fix for enterText() not being able to interact with the same + // textfield 2 times in the same test. + // See https://github.com/flutter/flutter/issues/134604 + binding.testTextInput.register(); + } + final testTextInput = binding.testTextInput; testTextInput.enterText(text); await binding.pump();