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

Commit 016ca907 authored by Vadim Tryshev's avatar Vadim Tryshev Committed by Android (Google) Code Review
Browse files

Merge "Keep hunting down flakes in testOpenCloseMessagesApp" into ub-launcher3-master

parents 02e900c3 61d8afc6
Loading
Loading
Loading
Loading
+1 −13
Original line number Diff line number Diff line
@@ -39,23 +39,11 @@ public final class AppIcon {
        return By.clazz(TextView.class).text(appName).pkg(LauncherInstrumentation.LAUNCHER_PKG);
    }

    /**
     * Clicks the icon to launch its app.
     */
    @Deprecated
    public Background launch() {
        LauncherInstrumentation.log("AppIcon.launch before click");
        LauncherInstrumentation.assertTrue(
                "Launching an app didn't open a new window: " + mIcon.getText(),
                mIcon.clickAndWait(Until.newWindow(), LauncherInstrumentation.WAIT_TIME_MS));
        return new Background(mLauncher);
    }

    /**
     * Clicks the icon to launch its app.
     */
    public Background launch(String packageName) {
        LauncherInstrumentation.log("AppIcon.launch before click");
        LauncherInstrumentation.log("AppIcon.launch before click " + mIcon.getVisibleCenter());
        LauncherInstrumentation.assertTrue(
                "Launching an app didn't open a new window: " + mIcon.getText(),
                mIcon.clickAndWait(Until.newWindow(), LauncherInstrumentation.WAIT_TIME_MS));