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

Commit 72bd5a04 authored by vadimt's avatar vadimt Committed by android-build-merger
Browse files

Unlock the phone before each test

am: c255c8b3

Change-Id: I62baf00e218206488b5c1568d8c643ea787f98b0
parents 987799df c255c8b3
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -163,6 +163,8 @@ public abstract class AbstractLauncherUiTest {
    public void setUp() throws Exception {
        mTargetContext = InstrumentationRegistry.getTargetContext();
        mTargetPackage = mTargetContext.getPackageName();
        // Unlock the phone
        mDevice.executeShellCommand("input keyevent 82");
    }

    @After
+0 −2
Original line number Diff line number Diff line
@@ -154,8 +154,6 @@ public final class LauncherInstrumentation {
        } catch (IOException e) {
            fail(e.toString());
        }

        assertTrue("Phone is locked", !hasSystemUiObject("keyguard_status_view"));
    }

    Context getContext() {