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

Commit 38779f75 authored by Winson Chung's avatar Winson Chung
Browse files

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
parent 39128081
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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();