Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

[image_picker] fix flutter/flutter#71927 #3676

Merged
merged 1 commit into from
Mar 4, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down