Unlock the phone before each test
am: c255c8b357
Change-Id: I62baf00e218206488b5c1568d8c643ea787f98b0
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -154,8 +154,6 @@ public final class LauncherInstrumentation {
|
||||
} catch (IOException e) {
|
||||
fail(e.toString());
|
||||
}
|
||||
|
||||
assertTrue("Phone is locked", !hasSystemUiObject("keyguard_status_view"));
|
||||
}
|
||||
|
||||
Context getContext() {
|
||||
|
||||
Reference in New Issue
Block a user