diff options
author | vadimt <vadimt@google.com> | 2019-05-08 15:59:30 -0700 |
---|---|---|
committer | vadimt <vadimt@google.com> | 2019-05-08 16:00:33 -0700 |
commit | b9300ef8494264143534674b73f4d1dd12e0a941 (patch) | |
tree | b202ac719db2c58f29670a32250b202f25eb7acd /tests | |
parent | e627accf264f75bfa70f8df12c10292b23ef0a12 (diff) | |
download | android_packages_apps_Trebuchet-b9300ef8494264143534674b73f4d1dd12e0a941.tar.gz android_packages_apps_Trebuchet-b9300ef8494264143534674b73f4d1dd12e0a941.tar.bz2 android_packages_apps_Trebuchet-b9300ef8494264143534674b73f4d1dd12e0a941.zip |
Not starting calculator from TaplTestsLauncher3.testAppIconLaunchFromAllAppsFromHome
Not sure why, but starting calculator sometimes fails. Let's see if
this changes anything.
Change-Id: I2934a388afe7e95bdaeb38151a2676b3297b6e94
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/com/android/launcher3/ui/TaplTestsLauncher3.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/src/com/android/launcher3/ui/TaplTestsLauncher3.java b/tests/src/com/android/launcher3/ui/TaplTestsLauncher3.java index 581e886b6..7578dfff2 100644 --- a/tests/src/com/android/launcher3/ui/TaplTestsLauncher3.java +++ b/tests/src/com/android/launcher3/ui/TaplTestsLauncher3.java @@ -24,7 +24,6 @@ import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; -import android.content.Intent; import android.util.Log; import androidx.test.filters.LargeTest; @@ -241,9 +240,8 @@ public class TaplTestsLauncher3 extends AbstractLauncherUiTest { } public static void runIconLaunchFromAllAppsTest(AbstractLauncherUiTest test, AllApps allApps) { - final AppIcon app = allApps.getAppIcon("Calculator"); - assertNotNull("AppIcon.launch returned null", app.launch( - test.resolveSystemApp(Intent.CATEGORY_APP_CALCULATOR))); + final AppIcon app = allApps.getAppIcon("TestActivity7"); + assertNotNull("AppIcon.launch returned null", app.launch(getAppPackageName())); test.executeOnLauncher(launcher -> assertTrue( "Launcher activity is the top activity; expecting another activity to be the top " + "one", |