Skip to content

Commit

Permalink
[image_picker] fix #71927 (#3676)
Browse files Browse the repository at this point in the history
  • Loading branch information
daadu committed Mar 4, 2021
1 parent 8ab62c5 commit 2518218
Showing 1 changed file with 0 additions and 11 deletions.
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

0 comments on commit 2518218

Please sign in to comment.