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

Commit eb493d5d authored by Fan Zhang's avatar Fan Zhang
Browse files

Wake up/unlock device before running tests

Fixes: 127452134
Test: atest
Change-Id: I627f848a080b4569b658678094d45576eab9247c
parent 76b70687
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -50,8 +50,10 @@ public class LifecycleEventHandlingTest {
    private UiDevice mDevice;

    @Before
    public void setUp() {
    public void setUp() throws Exception {
        mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
        mDevice.wakeUp();
        mDevice.executeShellCommand("wm dismiss-keyguard");
        mContext = InstrumentationRegistry.getTargetContext();
        mTargetPackage = mContext.getPackageName();
    }