Unlock the phone before each test

We were trying to do so from the test config, but this didn't work

Change-Id: I098eb392c76572bc43443adac130fa8700b49bde
This commit is contained in:
vadimt 2019-04-12 14:00:40 -07:00
parent c6d9ddfddb
commit c255c8b357
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -154,8 +154,6 @@ public final class LauncherInstrumentation {
} catch (IOException e) {
fail(e.toString());
}
assertTrue("Phone is locked", !hasSystemUiObject("keyguard_status_view"));
}
Context getContext() {