Merge "Testing to see if waiting for resume will fix flaky tests." into sc-v2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
1c79327f6e
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user