Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e516cb1b authored by Vadim Tryshev's avatar Vadim Tryshev Committed by Android (Google) Code Review
Browse files

Merge "Not using pressHome to start Launcher when tests are running in-proc"...

Merge "Not using pressHome to start Launcher when tests are running in-proc" into ub-launcher3-master
parents 1de3c507 1dc7ab88
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -110,7 +110,11 @@ public class TaplTestsLauncher3 extends AbstractLauncherUiTest {

    public static void initialize(AbstractLauncherUiTest test) throws Exception {
        test.clearLauncherData();
        if (TestHelpers.isInLauncherProcess()) {
            test.mActivityMonitor.returnToHome();
        } else {
            test.mDevice.pressHome();
        }
        test.waitForLauncherCondition("Launcher didn't start", launcher -> launcher != null);
        test.waitForState("Launcher internal state didn't switch to Home", LauncherState.NORMAL);
        test.waitForResumed("Launcher internal state is still Background");