Waiting for the state to settle after clear-all-tasks action

Bug: 313926097
Flag: N/A
Test: presubmit
Change-Id: Idbbf48d5814fa457b3542ff972bfb86d31f04377
This commit is contained in:
Vadim Tryshev
2023-12-31 13:33:51 -08:00
parent ff03dd19c7
commit b4ff22754a
2 changed files with 14 additions and 3 deletions

View File

@@ -280,7 +280,6 @@ public class FallbackRecentsTest {
// Test dismissing all tasks.
pressHomeAndGoToOverview().dismissAllTasks();
waitForRecentsActivityStop(); // dismissAllTasks() will close Recents
assertTrue("Fallback Launcher not visible", TestHelpers.wait(Until.hasObject(By.pkg(
mOtherLauncherActivity.packageName).text(FALLBACK_LAUNCHER_TITLE)), WAIT_TIME_MS));
}