Increasing wait time for a window to appear after starting an app
am: 6632195d03
Change-Id: Ia618deeaaa6961ca9cbecdb85d1caeb096ecd60c
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