Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 90853be3 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Move selectDocument from cleanupFile" into main

parents 1a7c98d7 752cfbdc
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -115,8 +115,6 @@ public class FilesActivityUiTest extends ActivityTestJunit4<FilesActivity> {

    private void cleanupFile(String fileName, String primaryRootTitle)
            throws UiObjectNotFoundException {
        // Unselect the file and remove it.
        bots.directory.selectDocument(fileName);
        bots.roots.openRoot(primaryRootTitle);
        bots.directory.openDocument("Download");

@@ -148,6 +146,7 @@ public class FilesActivityUiTest extends ActivityTestJunit4<FilesActivity> {
        try {
            bots.directory.waitForDocument(fileName);
            bots.directory.selectDocument(fileName, 1);
            bots.directory.selectDocument(fileName);
        } finally {
            cleanupFile(fileName, primaryRoot.title);
        }