summaryrefslogtreecommitdiffstats
path: root/quickstep/tests/src
diff options
context:
space:
mode:
authorvadimt <vadimt@google.com>2019-04-30 19:54:43 -0700
committervadimt <vadimt@google.com>2019-05-01 12:21:56 -0700
commitf1e0c90a3b4c3ea193527bbff4b4df32955658dc (patch)
tree9a6078aab29d93069a73610dcc744d023d6e33b8 /quickstep/tests/src
parentc9a2eb08091e6ef8252cff2a182540e60942ee43 (diff)
downloadandroid_packages_apps_Trebuchet-f1e0c90a3b4c3ea193527bbff4b4df32955658dc.tar.gz
android_packages_apps_Trebuchet-f1e0c90a3b4c3ea193527bbff4b4df32955658dc.tar.bz2
android_packages_apps_Trebuchet-f1e0c90a3b4c3ea193527bbff4b4df32955658dc.zip
Not using Contacts app
Bug: 131628231 Change-Id: If877cc95879263330b7bbd344ddd3a526a5e6fac
Diffstat (limited to 'quickstep/tests/src')
-rw-r--r--quickstep/tests/src/com/android/quickstep/TaplTestsQuickstep.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/quickstep/tests/src/com/android/quickstep/TaplTestsQuickstep.java b/quickstep/tests/src/com/android/quickstep/TaplTestsQuickstep.java
index b0ce5f5dc..4b6b3eeaf 100644
--- a/quickstep/tests/src/com/android/quickstep/TaplTestsQuickstep.java
+++ b/quickstep/tests/src/com/android/quickstep/TaplTestsQuickstep.java
@@ -64,7 +64,7 @@ public class TaplTestsQuickstep extends AbstractQuickStepTest {
private void startTestApps() throws Exception {
startAppFast(getAppPackageName());
startAppFast(resolveSystemApp(Intent.CATEGORY_APP_CALCULATOR));
- startAppFast(resolveSystemApp(Intent.CATEGORY_APP_CONTACTS));
+ startTestActivity(2);
executeOnLauncher(launcher -> assertTrue(
"Launcher activity is the top activity; expecting another activity to be the top "
@@ -130,8 +130,8 @@ public class TaplTestsQuickstep extends AbstractQuickStepTest {
OverviewTask task = mLauncher.pressHome().switchToOverview().getCurrentTask();
assertNotNull("overview.getCurrentTask() returned null (1)", task);
assertNotNull("OverviewTask.open returned null", task.open());
- assertTrue("Contacts app didn't open from Overview", mDevice.wait(Until.hasObject(
- By.pkg(resolveSystemApp(Intent.CATEGORY_APP_CONTACTS)).depth(0)),
+ assertTrue("Test activity didn't open from Overview", mDevice.wait(Until.hasObject(
+ By.pkg(getAppPackageName()).text("TestActivity2")),
LONG_WAIT_TIME_MS));
executeOnLauncher(launcher -> assertTrue(
"Launcher activity is the top activity; expecting another activity to be the top "