Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6632195d authored by vadimt's avatar vadimt
Browse files

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
parent 13f4ee28
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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,