summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2025-02-28 21:40:42 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2025-02-28 21:40:42 -0800
commit0525d8ce5c0b15ee3377021d5ad77021fedc3a51 (patch)
tree594e40438a6cfea9d5d02a99926f456694d52acd /tests
parent8f625d3707d334c9eacfab7ef62ad82258539e14 (diff)
parentdfc30280ba72851e63588dcb7adb8f69721d77a8 (diff)
Merge "Fix RenameDocumentUiTest#testRenameFile_OkButton" into main
Diffstat (limited to 'tests')
-rw-r--r--tests/common/com/android/documentsui/bots/UiBot.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/common/com/android/documentsui/bots/UiBot.java b/tests/common/com/android/documentsui/bots/UiBot.java
index 4ec75bdc6..b63057185 100644
--- a/tests/common/com/android/documentsui/bots/UiBot.java
+++ b/tests/common/com/android/documentsui/bots/UiBot.java
@@ -284,7 +284,8 @@ public class UiBot extends Bots.BaseBot {
// Espresso has flaky results when keyboard shows up, so hiding it for now
// before trying to click on any dialog button
Espresso.closeSoftKeyboard();
- onView(withId(android.R.id.button1)).perform(click());
+ UiObject2 okButton = mDevice.findObject(By.res("android:id/button1"));
+ okButton.click();
}
public void clickDialogCancelButton() throws UiObjectNotFoundException {