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

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

Change-Id: Ie577045ed8b6a12b9cd69d8aac19242227cf2dd7
This commit is contained in:
TreeHugger Robot
2021-11-09 00:15:13 +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);