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

Commit a8d2fdbf authored by Ben Lin's avatar Ben Lin Committed by Android (Google) Code Review
Browse files

Merge "Fix a broken test due to long press not done correctly in tests." into nyc-andromeda-dev

parents ba7e6c4d 548d71a6
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -127,9 +127,12 @@ public class DirectoryListBot extends Bots.BaseBot {
    }

    public UiObject selectDocument(String label) throws UiObjectNotFoundException {
        int toolType = Configurator.getInstance().getToolType();
        Configurator.getInstance().setToolType(MotionEvent.TOOL_TYPE_FINGER);
        waitForDocument(label);
        UiObject doc = findDocument(label);
        doc.longClick();
        Configurator.getInstance().setToolType(toolType);
        return doc;
    }