summaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
authorvadimt <vadimt@google.com>2019-04-03 18:31:43 -0700
committervadimt <vadimt@google.com>2019-04-03 18:31:43 -0700
commitf1855521088572def7e31245cc506e785c8b1751 (patch)
tree1d551dd7b277d39ea866c7a915d3a12bcc2673aa /tests/src
parent7e4efe3f66bfc801af124053afc91af02a3533ec (diff)
downloadandroid_packages_apps_Trebuchet-f1855521088572def7e31245cc506e785c8b1751.tar.gz
android_packages_apps_Trebuchet-f1855521088572def7e31245cc506e785c8b1751.tar.bz2
android_packages_apps_Trebuchet-f1855521088572def7e31245cc506e785c8b1751.zip
Not using Play Store app in tests
As it magically misses from some devices Change-Id: I7765d987ef996dc2f515b9a0023b6f545f9cb534
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/com/android/launcher3/ui/TaplTestsLauncher3.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/src/com/android/launcher3/ui/TaplTestsLauncher3.java b/tests/src/com/android/launcher3/ui/TaplTestsLauncher3.java
index d29d29c2d..c2e6749d5 100644
--- a/tests/src/com/android/launcher3/ui/TaplTestsLauncher3.java
+++ b/tests/src/com/android/launcher3/ui/TaplTestsLauncher3.java
@@ -207,8 +207,8 @@ public class TaplTestsLauncher3 extends AbstractLauncherUiTest {
// Test that ensureWorkspaceIsScrollable adds a page by dragging an icon there.
executeOnLauncher(launcher -> assertFalse("Initial workspace state is scrollable",
isWorkspaceScrollable(launcher)));
- assertNull("Play Store app was found on empty workspace",
- workspace.tryGetWorkspaceAppIcon("Play Store"));
+ assertNull("Chrome app was found on empty workspace",
+ workspace.tryGetWorkspaceAppIcon("Chrome"));
workspace.ensureWorkspaceIsScrollable();
@@ -218,8 +218,8 @@ public class TaplTestsLauncher3 extends AbstractLauncherUiTest {
executeOnLauncher(
launcher -> assertTrue("ensureScrollable didn't make workspace scrollable",
isWorkspaceScrollable(launcher)));
- assertNotNull("ensureScrollable didn't add Play Store app",
- workspace.tryGetWorkspaceAppIcon("Play Store"));
+ assertNotNull("ensureScrollable didn't add Chrome app",
+ workspace.tryGetWorkspaceAppIcon("Chrome"));
// Test flinging workspace.
workspace.flingBackward();
@@ -235,10 +235,10 @@ public class TaplTestsLauncher3 extends AbstractLauncherUiTest {
assertTrue("Launcher internal state is not Home", isInState(LauncherState.NORMAL));
// Test starting a workspace app.
- final AppIcon app = workspace.tryGetWorkspaceAppIcon("Play Store");
- assertNotNull("No Play Store app in 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_MARKET)));
+ app.launch(resolveSystemApp(Intent.CATEGORY_APP_BROWSER)));
executeOnLauncher(launcher -> assertTrue(
"Launcher activity is the top activity; expecting another activity to be the top "
+ "one",