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

Commit fa8bd1e5 authored by Diksha Gohlyan's avatar Diksha Gohlyan Committed by Automerger Merge Worker
Browse files

Wakeup and unlock screen before running the tests am: 91bc9d90

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/DocumentsUI/+/13080688

Change-Id: I1467d93fd1cde07a4c99905324b50adcc6739227
parents b281bd6b 91bc9d90
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@ import android.support.test.uiautomator.Configurator;
import android.support.test.uiautomator.UiDevice;
import android.support.test.uiautomator.UiObjectNotFoundException;
import android.test.ActivityInstrumentationTestCase2;
import android.view.KeyEvent;
import android.view.MotionEvent;

import com.android.documentsui.base.Features;
@@ -125,6 +126,8 @@ public abstract class ActivityTest<T extends Activity> extends ActivityInstrumen
                getTestingProviderAuthority());

        device.setOrientationNatural();
        device.pressKeyCode(KeyEvent.KEYCODE_WAKEUP);
        device.pressKeyCode(KeyEvent.KEYCODE_MENU);
        setupTestingRoots();

        launchActivity();