Fix test bug where launcher throws NPE because it isnt loaded yet.
Bug: 140635319 Change-Id: Iea90c6816c670d58acf79114fc725602ddc9d0b1
This commit is contained in:
@@ -48,6 +48,7 @@ public class PromiseIconUiTest extends AbstractLauncherUiTest {
|
||||
public void setUp() throws Exception {
|
||||
super.setUp();
|
||||
mDevice.pressHome();
|
||||
waitForLauncherCondition("Launcher didn't start", launcher -> launcher != null);
|
||||
waitForState("Launcher internal state didn't switch to Home", LauncherState.NORMAL);
|
||||
mSessionId = -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user