Merge "Moving TaplTestsLauncher3 to it's own class" into main

This commit is contained in:
Sebastián Franco
2023-09-06 23:27:33 +00:00
committed by Android (Google) Code Review
4 changed files with 188 additions and 120 deletions
@@ -270,24 +270,6 @@ public class TaplTestsQuickstep extends AbstractQuickStepTest {
this::isInLaunchedApp, 3000 /* timeout */);
}
@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.goHome());
assertTrue("Launcher internal state is not Home",
isInState(() -> LauncherState.NORMAL));
assertNotNull("getHome returned null", mLauncher.getWorkspace());
}
@Test
@NavigationModeSwitch
@PortraitLandscape