From ff74bb5ded47bc4af15c8c87f0a8443ea1c706f4 Mon Sep 17 00:00:00 2001 From: Pat Manning Date: Thu, 14 Sep 2023 12:13:45 +0100 Subject: [PATCH] Mark existing Launcher CUJs as Platinum tests. Exclusion CL: cl/565329636 & cl/569615823 Acceptance Criteria: - TaplTestsQuickstep#testOverviewActionsMenu: https://android-build.corp.google.com/test_investigate/?invocationId=I68300010197543619&testResultId=TR13128935381586398&tab=performance - OopTaplOpenCloseAllApps#testAllAppsSwipeUpToWorkspace: https://android-build.corp.google.com/test_investigate/?invocationId=I29900010197342608&testResultId=TR26328933842394642&tab=performance - AddWidgetTest#testResizeWidget: https://android-build.corp.google.com/test_investigate/?invocationId=I56600010197561454&testResultId=TR14428935383013115&tab=performance - TaplTestsLauncher3#testLaunchHomeScreenMenuItem: https://android-build.corp.google.com/test_investigate/?invocationId=I56600010197561454&testResultId=TR20028935383489058&tab=performance Bug: 300249773 Test: TaplTestsLauncher3 Test: OopTaplOpenCloseAllApps Test: AddWidgetTest Test: TaplTestsQuickstep Change-Id: Ica71dbad91efe8f5b4fd243f0ec78fc3c3c4d456 --- .../tests/src/com/android/quickstep/TaplTestsQuickstep.java | 1 + .../android/launcher3/allapps/OopTaplOpenCloseAllApps.java | 4 ++++ .../android/launcher3/appiconmenu/TaplAppIconMenuTest.java | 1 + tests/src/com/android/launcher3/ui/widget/AddWidgetTest.java | 2 +- 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/quickstep/tests/src/com/android/quickstep/TaplTestsQuickstep.java b/quickstep/tests/src/com/android/quickstep/TaplTestsQuickstep.java index 211a13c964..3a2899104e 100644 --- a/quickstep/tests/src/com/android/quickstep/TaplTestsQuickstep.java +++ b/quickstep/tests/src/com/android/quickstep/TaplTestsQuickstep.java @@ -196,6 +196,7 @@ public class TaplTestsQuickstep extends AbstractQuickStepTest { } + @PlatinumTest(focusArea = "launcher") @Test public void testOverviewActionsMenu() throws Exception { startTestAppsWithCheck(); diff --git a/tests/src/com/android/launcher3/allapps/OopTaplOpenCloseAllApps.java b/tests/src/com/android/launcher3/allapps/OopTaplOpenCloseAllApps.java index 7d6b7f9fac..f9dadaa351 100644 --- a/tests/src/com/android/launcher3/allapps/OopTaplOpenCloseAllApps.java +++ b/tests/src/com/android/launcher3/allapps/OopTaplOpenCloseAllApps.java @@ -17,11 +17,14 @@ package com.android.launcher3.allapps; import static com.android.launcher3.ui.TaplTestsLauncher3.expectFail; import static com.android.launcher3.ui.TaplTestsLauncher3.initialize; + import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import static org.junit.Assume.assumeTrue; +import android.platform.test.annotations.PlatinumTest; + import com.android.launcher3.LauncherState; import com.android.launcher3.tapl.AllApps; import com.android.launcher3.ui.AbstractLauncherUiTest; @@ -88,6 +91,7 @@ public class OopTaplOpenCloseAllApps extends AbstractLauncherUiTest { /** * Make sure the swipe up gesture can take us back to the workspace from AllApps */ + @PlatinumTest(focusArea = "launcher") @Test @PortraitLandscape public void testAllAppsSwipeUpToWorkspace() { diff --git a/tests/src/com/android/launcher3/appiconmenu/TaplAppIconMenuTest.java b/tests/src/com/android/launcher3/appiconmenu/TaplAppIconMenuTest.java index 66c67f5ca8..85cf52eb15 100644 --- a/tests/src/com/android/launcher3/appiconmenu/TaplAppIconMenuTest.java +++ b/tests/src/com/android/launcher3/appiconmenu/TaplAppIconMenuTest.java @@ -82,6 +82,7 @@ public class TaplAppIconMenuTest extends AbstractLauncherUiTest { * Drag icon from AllApps to the workspace and then open the AppIconMenu and launch a shortcut * from it. */ + @PlatinumTest(focusArea = "launcher") @Test public void testLaunchHomeScreenMenuItem() { // Drag the test app icon to home screen and open short cut menu from the icon diff --git a/tests/src/com/android/launcher3/ui/widget/AddWidgetTest.java b/tests/src/com/android/launcher3/ui/widget/AddWidgetTest.java index 64ab206830..fd4b7f1f6c 100644 --- a/tests/src/com/android/launcher3/ui/widget/AddWidgetTest.java +++ b/tests/src/com/android/launcher3/ui/widget/AddWidgetTest.java @@ -15,7 +15,6 @@ */ package com.android.launcher3.ui.widget; -import static com.android.launcher3.ui.TaplTestsLauncher3.getAppPackageName; import static org.junit.Assert.assertNotNull; import android.platform.test.annotations.PlatinumTest; @@ -99,6 +98,7 @@ public class AddWidgetTest extends AbstractLauncherUiTest { /** * Test dragging a widget to the workspace and resize it. */ + @PlatinumTest(focusArea = "launcher") @Test public void testResizeWidget() throws Throwable { new FavoriteItemsTransaction(mTargetContext).commitAndLoadHome(mLauncher);