Increasing wait time for a window to appear after starting an app
This is likely due to a bug with stale accessibility hierarchy. Bug: 112282235 Change-Id: If0a47bcc4b850fd619d9ac13984c42244ad3014b
This commit is contained in:
@@ -30,6 +30,7 @@ import com.android.launcher3.testing.TestProtocol;
|
||||
* Ancestor for AppIcon and AppMenuItem.
|
||||
*/
|
||||
abstract class Launchable {
|
||||
private static final int WAIT_TIME_MS = 60000;
|
||||
protected final LauncherInstrumentation mLauncher;
|
||||
|
||||
protected final UiObject2 mObject;
|
||||
@@ -56,7 +57,7 @@ abstract class Launchable {
|
||||
mLauncher.getTestInfo(TestProtocol.REQUEST_ENABLE_DEBUG_TRACING);
|
||||
mLauncher.assertTrue(
|
||||
"Launching an app didn't open a new window: " + mObject.getText(),
|
||||
mObject.clickAndWait(Until.newWindow(), LauncherInstrumentation.WAIT_TIME_MS));
|
||||
mObject.clickAndWait(Until.newWindow(), WAIT_TIME_MS));
|
||||
mLauncher.getTestInfo(TestProtocol.REQUEST_DISABLE_DEBUG_TRACING);
|
||||
mLauncher.assertTrue(
|
||||
"App didn't start: " + selector,
|
||||
|
||||
Reference in New Issue
Block a user