mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 08:16:49 +00:00
Testing to see if waiting for transition to end will fix flaky tests
Test: presubmit Bug: 202735477 Change-Id: Icf62003b9f422cf0e327365260c36f6d57b71aef
This commit is contained in:
@@ -91,9 +91,11 @@ public class WorkProfileTest extends AbstractLauncherUiTest {
|
||||
public void workTabExists() {
|
||||
mDevice.pressHome();
|
||||
waitForLauncherCondition("Launcher didn't start", Objects::nonNull);
|
||||
waitForStableState("Launcher internal state didn't switch to Normal", () -> NORMAL);
|
||||
waitForStateTransitionToEnd("Launcher internal state didn't switch to Normal",
|
||||
() -> NORMAL);
|
||||
executeOnLauncher(launcher -> launcher.getStateManager().goToState(ALL_APPS));
|
||||
waitForStableState("Launcher internal state didn't switch to All Apps", () -> ALL_APPS);
|
||||
waitForStateTransitionToEnd("Launcher internal state didn't switch to All Apps",
|
||||
() -> ALL_APPS);
|
||||
waitForLauncherCondition("Personal tab is missing",
|
||||
launcher -> launcher.getAppsView().isPersonalTabVisible(),
|
||||
LauncherInstrumentation.WAIT_TIME_MS);
|
||||
|
||||
Reference in New Issue
Block a user