Fix test bug where launcher throws NPE because it isnt loaded yet.

Bug: 140635319
Change-Id: Iea90c6816c670d58acf79114fc725602ddc9d0b1
This commit is contained in:
Jon Miranda
2019-09-06 12:55:43 -07:00
parent f5197fce3d
commit a7eea562fb
@@ -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;
}