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

This commit is contained in:
TreeHugger Robot 2021-11-08 23:52:50 +00:00 committed by Android (Google) Code Review
commit 1c79327f6e
1 changed files with 1 additions and 0 deletions

View File

@ -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);