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

Commit f6d0fe41 authored by Diksha Gohlyan's avatar Diksha Gohlyan
Browse files

Remove paste from ContextMenuUiTest

Paste is available on right click only if there has been copy in the past. Hence the tests are flaky.

Test: atest DocumentsUIGoogleTests:com.android.documentsui.ContextMenuUiTest

Bug: 157096837

Change-Id: If50f1f74a75082c46e59186c2fec327089092817
parent 055f833e
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -86,7 +86,6 @@ public class ContextMenuUiTest extends ActivityTest<FilesActivity> {
    public void testContextMenu_onDir() throws Exception {
        menuItems.put("Cut", true);
        menuItems.put("Copy", true);
        menuItems.put("Paste into folder", true);
        menuItems.put("Open in new window", true);
        menuItems.put("Delete", true);
        menuItems.put("Rename", true);
@@ -106,7 +105,6 @@ public class ContextMenuUiTest extends ActivityTest<FilesActivity> {

    public void testContextMenu_onEmptyArea() throws Exception {
        menuItems.put("Select all", true);
        menuItems.put("Paste", true);
        menuItems.put("New folder", true);
        Rect dirListBounds = bots.directory.findDocumentsList().getBounds();
        Rect dirBounds = bots.directory.findDocument(dirName1).getBounds();