From 91b01f6c7fe6955a926f0cf6cf11068a4354cf21 Mon Sep 17 00:00:00 2001 From: vadimt Date: Fri, 26 Apr 2019 14:38:21 -0700 Subject: [PATCH] Not starting Chrome for testing as it's unstable Bug: 131420412 Change-Id: Ief57e8a9ba37feddfc7c2bddc66209e99c796052 --- .../com/android/launcher3/ui/TaplTestsLauncher3.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/src/com/android/launcher3/ui/TaplTestsLauncher3.java b/tests/src/com/android/launcher3/ui/TaplTestsLauncher3.java index c55bc72ca8..2a69757623 100644 --- a/tests/src/com/android/launcher3/ui/TaplTestsLauncher3.java +++ b/tests/src/com/android/launcher3/ui/TaplTestsLauncher3.java @@ -239,12 +239,6 @@ public class TaplTestsLauncher3 extends AbstractLauncherUiTest { // Test starting a workspace app. final AppIcon app = workspace.tryGetWorkspaceAppIcon("Chrome"); assertNotNull("No Chrome app in workspace", app); - assertNotNull("AppIcon.launch returned null", - app.launch(resolveSystemApp(Intent.CATEGORY_APP_BROWSER))); - executeOnLauncher(launcher -> assertTrue( - "Launcher activity is the top activity; expecting another activity to be the top " - + "one", - isInBackground(launcher))); } public static void runIconLaunchFromAllAppsTest(AbstractLauncherUiTest test, AllApps allApps) { @@ -340,6 +334,10 @@ public class TaplTestsLauncher3 extends AbstractLauncherUiTest { dragToWorkspace(). getWorkspaceAppIcon(APP_NAME). launch(getAppPackageName()); + executeOnLauncher(launcher -> assertTrue( + "Launcher activity is the top activity; expecting another activity to be the " + + "top one", + isInBackground(launcher))); } finally { TestProtocol.sDebugTracing = false; }