commit | c634f957daed7473364f8ddc9c52ca2dd2c6bf4a | [log] [tgz] |
---|---|---|
author | Nandana Dutt <nandana@google.com> | Mon Mar 16 21:43:39 2020 +0000 |
committer | Nandana Dutt <nandana@google.com> | Mon Mar 16 22:40:43 2020 +0000 |
tree | 7e1d14c376720884c0b9187f9880d4a4c10f0ba4 | |
parent | d22b5bda955ab6294c5cefa38968b77491287f15 [diff] |
Use new bulk dialog string Test: atest ExternalStorageHostTest BUG: 151133615 Change-Id: I3700b242d7e452ef8aea5c3c3db1df0fcc6cbf0a
diff --git a/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/MediaStorageTest.java b/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/MediaStorageTest.java index 61f342c..0886269 100644 --- a/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/MediaStorageTest.java +++ b/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/MediaStorageTest.java
@@ -473,8 +473,7 @@ // Some dialogs may have granted access automatically, so we're willing // to keep rolling forward if we can't find our grant button - final UiSelector grant = new UiSelector() - .textMatches("(Allow|Change|Move to trash|Move out of trash|Delete)"); + final UiSelector grant = new UiSelector().textMatches("Allow"); if (new UiObject(grant).waitForExists(2_000)) { device.findObject(grant).click(); }