Fix TaplTestQuickStep.testOverview for large screen cuttlefish
- Use gesture (or button) to press home instead of UIDevice in the test, as UIDevice is sometimes failing to go home in cuttlefish Bug: 193440212 Test: TaplTestQuickStep.testOverview Change-Id: I834f1c93c24db24edbccd0bbf0ed5cfcf39a9b4d
This commit is contained in:
parent
e23dd92a55
commit
22a86d7c8c
|
@ -145,12 +145,8 @@ public class TaplTestsQuickstep extends AbstractQuickStepTest {
|
|||
launcher -> assertEquals("Dismissing a task didn't remove 1 task from Overview",
|
||||
numTasks - 1, getTaskCount(launcher)));
|
||||
|
||||
// Test UIDevice.pressHome, once we are in AllApps.
|
||||
mDevice.pressHome();
|
||||
waitForState("Launcher internal state didn't switch to Home", () -> LauncherState.NORMAL);
|
||||
|
||||
// Test dismissing all tasks.
|
||||
mLauncher.getWorkspace().switchToOverview().dismissAllTasks();
|
||||
mLauncher.pressHome().switchToOverview().dismissAllTasks();
|
||||
waitForState("Launcher internal state didn't switch to Home", () -> LauncherState.NORMAL);
|
||||
executeOnLauncher(
|
||||
launcher -> assertEquals("Still have tasks after dismissing all",
|
||||
|
|
Loading…
Reference in New Issue