Simplifying switching to home for some tests

Change-Id: I696d0267a2c36a18080396657bed07f7b1654a7d
This commit is contained in:
vadimt committed 2019-07-12 12:26:08 -07:00
1 parent 59b5b3f2a2
commit d91cec72fe
8 files changed
+16 -32

No files matched your search

@@ -88,7 +88,7 @@ public class AppPredictionsUITests extends AbstractQuickStepTest {
*/
@Test
public void testPredictionExistsInAllApps() {
mActivityMonitor.startLauncher();
mDevice.pressHome();
mLauncher.pressHome().switchToAllApps();
// Dispatch an update
@@ -103,7 +103,7 @@ public class AppPredictionsUITests extends AbstractQuickStepTest {
*/
@Test
public void testPredictionsDeferredUntilHome() {
mActivityMonitor.startLauncher();
mDevice.pressHome();
sendPredictionUpdate(mSampleApp1, mSampleApp2);
mLauncher.pressHome().switchToAllApps();
waitForLauncherCondition("Predictions were not updated in loading state",
@@ -120,7 +120,7 @@ public class AppPredictionsUITests extends AbstractQuickStepTest {
@Test
public void testPredictionsDisabled() {
mActivityMonitor.startLauncher();
mDevice.pressHome();
sendPredictionUpdate();
mLauncher.pressHome().switchToAllApps();