Merge "Testing to see if waiting for resume will fix flaky tests." into sc-v2-dev am: 1c79327f6e am: 55bef3bdd4

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16214207

Change-Id: I8caedae65eff243061015e8076bb581c3aea2986
This commit is contained in:
TreeHugger Robot
2021-11-09 00:33:31 +00:00
committed by Automerger Merge Worker
@@ -93,6 +93,7 @@ public class WorkProfileTest extends AbstractLauncherUiTest {
waitForLauncherCondition("Launcher didn't start", Objects::nonNull);
waitForStateTransitionToEnd("Launcher internal state didn't switch to Normal",
() -> NORMAL);
waitForResumed("Launcher internal state is still Background");
executeOnLauncher(launcher -> launcher.getStateManager().goToState(ALL_APPS));
waitForStateTransitionToEnd("Launcher internal state didn't switch to All Apps",
() -> ALL_APPS);