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

Commit b9300ef8 authored by vadimt's avatar vadimt
Browse files

Not starting calculator from TaplTestsLauncher3.testAppIconLaunchFromAllAppsFromHome

Not sure why, but starting calculator sometimes fails. Let's see if
this changes anything.

Change-Id: I2934a388afe7e95bdaeb38151a2676b3297b6e94
parent e627accf
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -24,7 +24,6 @@ import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;

import android.content.Intent;
import android.util.Log;

import androidx.test.filters.LargeTest;
@@ -241,9 +240,8 @@ public class TaplTestsLauncher3 extends AbstractLauncherUiTest {
    }

    public static void runIconLaunchFromAllAppsTest(AbstractLauncherUiTest test, AllApps allApps) {
        final AppIcon app = allApps.getAppIcon("Calculator");
        assertNotNull("AppIcon.launch returned null", app.launch(
                test.resolveSystemApp(Intent.CATEGORY_APP_CALCULATOR)));
        final AppIcon app = allApps.getAppIcon("TestActivity7");
        assertNotNull("AppIcon.launch returned null", app.launch(getAppPackageName()));
        test.executeOnLauncher(launcher -> assertTrue(
                "Launcher activity is the top activity; expecting another activity to be the top "
                        + "one",