From 6458470c05ed62fcf977e1561210bd5058c34dd1 Mon Sep 17 00:00:00 2001 From: Maikel Rehl Date: Wed, 20 Mar 2024 15:52:16 +0100 Subject: [PATCH] Add potential bug fix on real iOS devices --- lib/src/act/act.dart | 9 +++++++++ 1 file changed, 9 insertions(+) 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();