[4/7]Add PlatinumTest annotation to tests am: 5bde3f8573
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23395253 Change-Id: I49ee16a06d53d7bc363a14ad7f8940a772e4e592 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -32,6 +32,7 @@ import android.content.Intent;
|
||||
import android.graphics.Point;
|
||||
import android.os.SystemClock;
|
||||
import android.platform.test.annotations.IwTest;
|
||||
import android.platform.test.annotations.PlatinumTest;
|
||||
import android.util.Log;
|
||||
|
||||
import androidx.test.filters.FlakyTest;
|
||||
@@ -350,6 +351,7 @@ public class TaplTestsLauncher3 extends AbstractLauncherUiTest {
|
||||
|
||||
@Test
|
||||
@PortraitLandscape
|
||||
@PlatinumTest(focusArea = "launcher")
|
||||
public void testLaunchMenuItem() throws Exception {
|
||||
final AllApps allApps = mLauncher.getWorkspace().switchToAllApps();
|
||||
allApps.freeze();
|
||||
@@ -394,6 +396,7 @@ public class TaplTestsLauncher3 extends AbstractLauncherUiTest {
|
||||
|
||||
@Test
|
||||
@PortraitLandscape
|
||||
@PlatinumTest(focusArea = "launcher")
|
||||
public void testDragShortcut() throws Throwable {
|
||||
// 1. Open all apps and wait for load complete.
|
||||
// 2. Find the app and long press it to show shortcuts.
|
||||
@@ -423,6 +426,7 @@ public class TaplTestsLauncher3 extends AbstractLauncherUiTest {
|
||||
@PortraitLandscape
|
||||
@ScreenRecord
|
||||
@Ignore // b/233075289
|
||||
@PlatinumTest(focusArea = "launcher")
|
||||
public void testDragToFolder() {
|
||||
// TODO: add the use case to drag an icon to an existing folder. Currently it either fails
|
||||
// on tablets or phones due to difference in resolution.
|
||||
@@ -469,6 +473,7 @@ public class TaplTestsLauncher3 extends AbstractLauncherUiTest {
|
||||
|
||||
@Test
|
||||
@PortraitLandscape
|
||||
@PlatinumTest(focusArea = "launcher")
|
||||
public void testDragAndCancelAppIcon() {
|
||||
final HomeAppIcon homeAppIcon = createShortcutInCenterIfNotExist(GMAIL_APP_NAME);
|
||||
Point positionBeforeDrag =
|
||||
@@ -511,6 +516,7 @@ public class TaplTestsLauncher3 extends AbstractLauncherUiTest {
|
||||
@Ignore("b/256615483")
|
||||
@Test
|
||||
@PortraitLandscape
|
||||
@PlatinumTest(focusArea = "launcher")
|
||||
public void testUninstallFromWorkspace() throws Exception {
|
||||
installDummyAppAndWaitForUIUpdate();
|
||||
try {
|
||||
@@ -524,6 +530,7 @@ public class TaplTestsLauncher3 extends AbstractLauncherUiTest {
|
||||
@Test
|
||||
@ScreenRecord // b/258071914
|
||||
@PortraitLandscape
|
||||
@PlatinumTest(focusArea = "launcher")
|
||||
public void testUninstallFromAllApps() throws Exception {
|
||||
installDummyAppAndWaitForUIUpdate();
|
||||
try {
|
||||
@@ -539,6 +546,7 @@ public class TaplTestsLauncher3 extends AbstractLauncherUiTest {
|
||||
|
||||
@Test
|
||||
@PortraitLandscape
|
||||
@PlatinumTest(focusArea = "launcher")
|
||||
public void testDragAppIconToWorkspaceCell() throws Exception {
|
||||
long startTime, endTime, elapsedTime;
|
||||
Point[] targets = getCornersAndCenterPositions();
|
||||
@@ -574,6 +582,7 @@ public class TaplTestsLauncher3 extends AbstractLauncherUiTest {
|
||||
|
||||
@Test
|
||||
@ScreenRecord // b/241821721
|
||||
@PlatinumTest(focusArea = "launcher")
|
||||
public void getIconsPosition_afterIconRemoved_notContained() throws IOException {
|
||||
Point[] gridPositions = getCornersAndCenterPositions();
|
||||
createShortcutIfNotExist(STORE_APP_NAME, gridPositions[0]);
|
||||
@@ -600,6 +609,7 @@ public class TaplTestsLauncher3 extends AbstractLauncherUiTest {
|
||||
|
||||
@Test
|
||||
@PortraitLandscape
|
||||
@PlatinumTest(focusArea = "launcher")
|
||||
public void testDragShortcutToWorkspaceCell() throws Exception {
|
||||
Point[] targets = getCornersAndCenterPositions();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user