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

Commit 2b163bd0 authored by Tomasz Mikolajewski's avatar Tomasz Mikolajewski
Browse files

Remove revealLauncher and revealApp from tests.

This speeds executing all tests by 3 minutes (from 12min to 8min).

Bug: 27192623
Change-Id: I96eb9edd802f5817ab466332ac4e1bb9106621bd
parent 0d47cd29
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -81,7 +81,6 @@ public abstract class ActivityTest<T extends Activity> extends ActivityInstrumen
        bots = new Bots(device, context, TIMEOUT);

        Configurator.getInstance().setToolType(MotionEvent.TOOL_TYPE_MOUSE);
        bots.main.revealLauncher();

        mResolver = context.getContentResolver();
        mClient = mResolver.acquireUnstableContentProviderClient(DEFAULT_AUTHORITY);
@@ -91,8 +90,6 @@ public abstract class ActivityTest<T extends Activity> extends ActivityInstrumen
        rootDir1 = mDocsHelper.getRoot(ROOT_1_ID);

        launchActivity();

        bots.main.revealApp();
        resetStorage();
    }

+0 −10
Original line number Diff line number Diff line
@@ -203,16 +203,6 @@ public class UiBot extends BaseBot {
        return mDevice.findObject(selector);
    }

    public void revealLauncher() {
        mDevice.pressHome();
        mDevice.wait(Until.hasObject(By.pkg(LAUNCHER_PKG).depth(0)), mTimeout);
    }

    public void revealApp() {
        mDevice.wait(Until.hasObject(By.pkg(TARGET_PKG).depth(0)), mTimeout);
        mDevice.waitForIdle();
    }

    public void pressKey(int keyCode) {
        mDevice.pressKeyCode(keyCode);
    }