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:
parent
c6d9ddfddb
commit
c255c8b357
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue