From fdf7227b3a481a05aafcf15efbab2ee3ef28a98b Mon Sep 17 00:00:00 2001 From: Harsh Bhikadia Date: Thu, 4 Mar 2021 12:05:04 +0530 Subject: [PATCH] [image_picker] fix flutter/flutter#71927 --- .../ios/RunnerUITests/ImagePickerFromGalleryUITests.m | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/packages/image_picker/image_picker/example/ios/RunnerUITests/ImagePickerFromGalleryUITests.m b/packages/image_picker/image_picker/example/ios/RunnerUITests/ImagePickerFromGalleryUITests.m index e30fabd2d071..8be41dc63587 100644 --- a/packages/image_picker/image_picker/example/ios/RunnerUITests/ImagePickerFromGalleryUITests.m +++ b/packages/image_picker/image_picker/example/ios/RunnerUITests/ImagePickerFromGalleryUITests.m @@ -120,17 +120,6 @@ - (void)launchPickerAndCancel { elementMatchingPredicate:[NSPredicate predicateWithFormat:@"label == %@", @"You have not yet picked an image."]]; - if (![imageNotPickedText waitForExistenceWithTimeout:kElementWaitingTime]) { - // Before https://github.com/flutter/engine/pull/22811 the label's a11y type was otherElements. - // TODO(cyanglaz): Remove this after - // https://github.com/flutter/flutter/commit/057e8230743ec96f33b73948ccd6b80081e3615e rolled to - // stable. - // https://github.com/flutter/flutter/issues/71927 - imageNotPickedText = [self.app.otherElements - elementMatchingPredicate:[NSPredicate - predicateWithFormat:@"label == %@", - @"You have not yet picked an image."]]; - } if (![imageNotPickedText waitForExistenceWithTimeout:kElementWaitingTime]) { os_log_error(OS_LOG_DEFAULT, "%@", self.app.debugDescription); XCTFail(@"Failed due to not able to find imageNotPickedText with %@ seconds",