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

Commit 751425ae authored by Ben Lin's avatar Ben Lin
Browse files

DO NOT MERGE Change test case that's only meant for productivity devices.

When in selection, the hamburger button is not available; therefore, it
is not a valid test case for phone factor devices.

Change-Id: I00e0827df4cd72d76e7ec24d0be27b23ae60f750
parent 05376628
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ public class FilesActivityUiTest extends ActivityTest<FilesActivity> {
                "file0.log", "file1.png", "file2.csv", "Ham & Cheese.sandwich");
    }

    public void testNavigateByBreadcrumb() throws Exception {
    public void testNavigate_inFixedLayout_byBreadcrumb() throws Exception {
        bots.directory.openDocument(dirName1);
        bots.directory.waitForDocument(childDir1);  // wait for known content
        bots.directory.assertDocumentsPresent(childDir1);
@@ -86,6 +86,17 @@ public class FilesActivityUiTest extends ActivityTest<FilesActivity> {
        bots.directory.waitForDocument(dirName1);
    }

    public void testNavigate_inFixedLayout_whileHasSelection() throws Exception {
        if (bots.main.inFixedLayout()) {
            bots.roots.openRoot(rootDir0.title);
            device.waitForIdle();
            bots.directory.selectDocument("file0.log", 1);

            // ensure no exception is thrown while navigating to a different root
            bots.roots.openRoot(rootDir1.title);
        }
    }

    public void testRootChange_UpdatesSortHeader() throws Exception {

        // switch to separate display modes for two separate roots. Each