From 4351d50609701792a4c2e8d078476b6ee0d41f9c Mon Sep 17 00:00:00 2001 From: Vinit Nayak Date: Tue, 18 Jul 2023 15:45:42 -0700 Subject: [PATCH] Use gesture instead of stateManager to go to AllApps * Hypothesis for why ALL_APPS isn't showing is that directly navigating to it via state manager might have some more hiccups (historically it has), so we do it now via swiping up on workspace Bug: 288152874 Flag: None Test: Passes locally Change-Id: I8ada7d3bde88fa54c9aab84012a9b0e3e045069e --- tests/src/com/android/launcher3/ui/WorkProfileTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/com/android/launcher3/ui/WorkProfileTest.java b/tests/src/com/android/launcher3/ui/WorkProfileTest.java index 72373875d6..5b9adcd80f 100644 --- a/tests/src/com/android/launcher3/ui/WorkProfileTest.java +++ b/tests/src/com/android/launcher3/ui/WorkProfileTest.java @@ -85,7 +85,7 @@ public class WorkProfileTest extends AbstractLauncherUiTest { waitForStateTransitionToEnd("Launcher internal state didn't switch to Normal", () -> NORMAL); waitForResumed("Launcher internal state is still Background"); - executeOnLauncher(launcher -> launcher.getStateManager().goToState(ALL_APPS)); + mLauncher.getWorkspace().switchToAllApps(); waitForStateTransitionToEnd("Launcher internal state didn't switch to All Apps", () -> ALL_APPS); }