From 29e259087445abd2661bf1718efff805a67e9f58 Mon Sep 17 00:00:00 2001 From: Julia Borkowska Date: Thu, 15 Feb 2024 15:26:39 +0100 Subject: [PATCH] Add registering text input --- .../patrol_finders/lib/src/custom_finders/patrol_tester.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/patrol_finders/lib/src/custom_finders/patrol_tester.dart b/packages/patrol_finders/lib/src/custom_finders/patrol_tester.dart index 901661d3f..5618390fe 100644 --- a/packages/patrol_finders/lib/src/custom_finders/patrol_tester.dart +++ b/packages/patrol_finders/lib/src/custom_finders/patrol_tester.dart @@ -334,9 +334,12 @@ class PatrolTester { Duration? visibleTimeout, Duration? settleTimeout, }) { - if (!kIsWeb && Platform.isIOS && kReleaseMode) { + 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 tester.testTextInput.register(); }