Fixing AOSP TaplTestsLauncher3.testAllAppsFromHome test

On the AOSP target, there are not enough apps to make App Apps
scrollable. Moving the test to QS Tapl tests.

Change-Id: I95e196bafdbd0fee77705554890a7c3cda7ac92a
Tests: the affected test
This commit is contained in:
vadimt
2019-01-29 17:22:15 -08:00
parent b3ca6aee2c
commit 44d227a5b8
2 changed files with 16 additions and 16 deletions
@@ -221,4 +221,20 @@ public class TaplTestsQuickstep extends AbstractQuickStepTest {
assertTrue("Launcher internal state didn't switch to Overview",
isInState(LauncherState.OVERVIEW));
}
@Test
@PortraitLandscape
public void testAllAppsFromHome() throws Exception {
// Test opening all apps
assertNotNull("switchToAllApps() returned null",
mLauncher.getWorkspace().switchToAllApps());
TaplTestsLauncher3.runAllAppsTest(this, mLauncher.getAllApps());
// Testing pressHome.
assertTrue("Launcher internal state is not All Apps", isInState(LauncherState.ALL_APPS));
assertNotNull("pressHome returned null", mLauncher.pressHome());
assertTrue("Launcher internal state is not Home", isInState(LauncherState.NORMAL));
assertNotNull("getHome returned null", mLauncher.getWorkspace());
}
}