From ec3bd9edc4d2998661fa444ec1084963288e0c8c Mon Sep 17 00:00:00 2001 From: Chris Yang Date: Thu, 16 Sep 2021 20:02:02 -0700 Subject: [PATCH] try tap app before apping the element (#90149) --- .../ios_host_app/FlutterUITests/FlutterUITests.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dev/integration_tests/ios_host_app/FlutterUITests/FlutterUITests.m b/dev/integration_tests/ios_host_app/FlutterUITests/FlutterUITests.m index d47e5a9612..cb7ecf36b1 100644 --- a/dev/integration_tests/ios_host_app/FlutterUITests/FlutterUITests.m +++ b/dev/integration_tests/ios_host_app/FlutterUITests/FlutterUITests.m @@ -100,6 +100,9 @@ NSPredicate *hittable = [NSPredicate predicateWithFormat:@"exists == YES AND hittable == YES"]; [self expectationForPredicate:hittable evaluatedWithObject:element handler:nil]; [self waitForExpectationsWithTimeout:30.0 handler:nil]; + // Sometimes, the element doesn't respond to the tap, it seems an XCUITest bug. Trying tap + // the app first to fix it. + [self.app tap]; [element tap]; }