Commit 68f425c5 authored by zhaoyangli's avatar zhaoyangli Committed by Commit Bot

[iOS] Dismiss new iOS14 system dialog in EG2 test setUp.

Accept the request `"<app name>" would like to find and connect to
devices on your local network.`

Bug: 1114928, 1115099
Change-Id: I777b70c13c6b19c3fc0f30a9a67663afeaa7bc9c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2347201Reviewed-by: default avatarEugene But <eugenebut@chromium.org>
Commit-Queue: Zhaoyang Li <zhaoyangli@chromium.org>
Cr-Commit-Position: refs/heads/master@{#796909}
parent 2117ab53
......@@ -152,6 +152,15 @@ bool g_needs_set_up_for_test_case = true;
[self tapAlertButtonWithText:@"Not Now" error:&error];
GREYAssertNil(
error, @"Error closing Carrier Settings Update alert.\n%@", error);
} else if ([alertText containsString:@"would like to find and connect to "
@"devices on your local network."]) {
DLOG(WARNING) << "Denying iOS system alert of connecting to local "
"network devices!";
NSError* error = nil;
[self tapAlertButtonWithText:@"OK" error:&error];
GREYAssertNil(error,
@"Error closing connecting to local network devices.\n%@",
error);
} else {
XCTFail("An unsupported system alert is present on device. Failing "
"this test. Alert label: %@",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment