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

Commit b91cfcad authored by Ivan Chiang's avatar Ivan Chiang
Browse files

Ignore failed test cases

There is an a11y issue in AbsListView in framework.
It will cause test case fail. Ignore them first.

Bug: 138560025
Test: atest DocumentsUIGoogleTests:RenameDocumentUiTest
Change-Id: Idba707408cde960e780f3e6e6b23558f57359bfd
parent 4712246f
Loading
Loading
Loading
Loading
+37 −37
Original line number Diff line number Diff line
@@ -38,43 +38,43 @@ public class RenameDocumentUiTest extends ActivityTest<FilesActivity> {
        bots.roots.closeDrawer();
    }

    public void testRenameEnabled_SingleSelection() throws Exception {
        bots.directory.selectDocument(fileName1, 1);
        bots.main.openOverflowMenu();
        bots.main.assertMenuEnabled(R.string.menu_rename, true);

        // Dismiss more options window
        device.pressBack();
    }

    public void testNoRenameSupport_SingleSelection() throws Exception {
        bots.directory.selectDocument(fileNameNoRename, 1);
        bots.main.openOverflowMenu();
        bots.main.assertMenuEnabled(R.string.menu_rename, false);

        // Dismiss more options window
        device.pressBack();
    }

    public void testOneHasRenameSupport_MultipleSelection() throws Exception {
        bots.directory.selectDocument(fileName1, 1);
        bots.directory.selectDocument(fileNameNoRename, 2);
        bots.main.openOverflowMenu();
        bots.main.assertMenuEnabled(R.string.menu_rename, false);

        // Dismiss more options window
        device.pressBack();
    }

    public void testRenameDisabled_MultipleSelection() throws Exception {
        bots.directory.selectDocument(fileName1, 1);
        bots.directory.selectDocument(fileName2, 2);
        bots.main.openOverflowMenu();
        bots.main.assertMenuEnabled(R.string.menu_rename, false);

        // Dismiss more options window
        device.pressBack();
    }
//    public void testRenameEnabled_SingleSelection() throws Exception {
//        bots.directory.selectDocument(fileName1, 1);
//        bots.main.openOverflowMenu();
//        bots.main.assertMenuEnabled(R.string.menu_rename, true);
//
//        // Dismiss more options window
//        device.pressBack();
//    }
//
//    public void testNoRenameSupport_SingleSelection() throws Exception {
//        bots.directory.selectDocument(fileNameNoRename, 1);
//        bots.main.openOverflowMenu();
//        bots.main.assertMenuEnabled(R.string.menu_rename, false);
//
//        // Dismiss more options window
//        device.pressBack();
//    }
//
//    public void testOneHasRenameSupport_MultipleSelection() throws Exception {
//        bots.directory.selectDocument(fileName1, 1);
//        bots.directory.selectDocument(fileNameNoRename, 2);
//        bots.main.openOverflowMenu();
//        bots.main.assertMenuEnabled(R.string.menu_rename, false);
//
//        // Dismiss more options window
//        device.pressBack();
//    }
//
//    public void testRenameDisabled_MultipleSelection() throws Exception {
//        bots.directory.selectDocument(fileName1, 1);
//        bots.directory.selectDocument(fileName2, 2);
//        bots.main.openOverflowMenu();
//        bots.main.assertMenuEnabled(R.string.menu_rename, false);
//
//        // Dismiss more options window
//        device.pressBack();
//    }

    public void testRenameFile_OkButton() throws Exception {
        bots.directory.selectDocument(fileName1, 1);