From 38779f75dab7c499e63332008cfefd11c0b04268 Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Thu, 3 Nov 2022 03:47:01 +0000 Subject: [PATCH] Add delay after installing dummy app - Testing hypothesis that it's taking a while for the app to be properly installed and showing in all apps Bug: 256659409 Test: com.android.launcher3.ui.TaplTestsLauncher3#testUninstallFromAllApps Change-Id: Icb1bb8bb9d98751ac8c97b300ecc39372f39c345 --- tests/src/com/android/launcher3/ui/TaplTestsLauncher3.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/src/com/android/launcher3/ui/TaplTestsLauncher3.java b/tests/src/com/android/launcher3/ui/TaplTestsLauncher3.java index cf5f5fc320..b5255e0628 100644 --- a/tests/src/com/android/launcher3/ui/TaplTestsLauncher3.java +++ b/tests/src/com/android/launcher3/ui/TaplTestsLauncher3.java @@ -29,6 +29,7 @@ import static org.junit.Assume.assumeTrue; import android.content.Intent; import android.graphics.Point; +import android.os.SystemClock; import android.platform.test.annotations.IwTest; import androidx.test.filters.LargeTest; @@ -492,6 +493,8 @@ public class TaplTestsLauncher3 extends AbstractLauncherUiTest { public void testUninstallFromAllApps() throws Exception { TestUtil.installDummyApp(); try { + // b/256659409 + SystemClock.sleep(5000); Workspace workspace = mLauncher.getWorkspace(); final HomeAllApps allApps = workspace.switchToAllApps(); allApps.freeze();