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

Commit 0b304537 authored by Sebastian Franco's avatar Sebastian Franco Committed by Sebastián Franco
Browse files

Move test from TaplTestsLauncher3 to TaplUninstallRemove

Bug: 298234173
Test: atest TaplUninstallRemove
Change-Id: I80fe1c73d08fcf1e310b86a8662c13a8775ade6e
parent 23f869f0
Loading
Loading
Loading
Loading
+16 −1
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@ import java.util.Map;

/**
 * Test runs in Out of process (Oop) and In process (Ipc)
 * Test the behaviour of uninstalling and removing apps both from AllApps and from the Workspace.
 * Test the behaviour of uninstalling and removing apps both from AllApps, Workspace and Hotseat.
 */
public class TaplUninstallRemove extends AbstractLauncherUiTest {

@@ -164,4 +164,19 @@ public class TaplUninstallRemove extends AbstractLauncherUiTest {
            TestUtil.uninstallDummyApp();
        }
    }

    /**
     * Drag icon from the Hotseat to the delete drop target
     */
    @Test
    @PortraitLandscape
    public void testAddDeleteShortcutOnHotseat() {
        mLauncher.getWorkspace()
                .deleteAppIcon(mLauncher.getWorkspace().getHotseatAppIcon(0))
                .switchToAllApps()
                .getAppIcon(APP_NAME)
                .dragToHotseat(0);
        mLauncher.getWorkspace().deleteAppIcon(
                mLauncher.getWorkspace().getHotseatAppIcon(APP_NAME));
    }
}
+0 −12
Original line number Diff line number Diff line
@@ -82,16 +82,4 @@ public class TaplTestsLauncher3 extends AbstractLauncherUiTest {
        // Check that pressHome works when the menu is shown.
        mLauncher.goHome();
    }

    @Test
    @PortraitLandscape
    public void testAddDeleteShortcutOnHotseat() {
        mLauncher.getWorkspace()
                .deleteAppIcon(mLauncher.getWorkspace().getHotseatAppIcon(0))
                .switchToAllApps()
                .getAppIcon(APP_NAME)
                .dragToHotseat(0);
        mLauncher.getWorkspace().deleteAppIcon(
                mLauncher.getWorkspace().getHotseatAppIcon(APP_NAME));
    }
}