[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:
@@ -26,6 +26,7 @@ import static org.junit.Assume.assumeFalse;
|
||||
import static org.junit.Assume.assumeTrue;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.platform.test.annotations.PlatinumTest;
|
||||
|
||||
import androidx.test.filters.LargeTest;
|
||||
import androidx.test.platform.app.InstrumentationRegistry;
|
||||
@@ -99,6 +100,7 @@ public class TaplTestsQuickstep extends AbstractQuickStepTest {
|
||||
@Test
|
||||
@NavigationModeSwitch
|
||||
@PortraitLandscape
|
||||
@PlatinumTest(focusArea = "launcher")
|
||||
public void testWorkspaceSwitchToAllApps() {
|
||||
assertNotNull("switchToAllApps() returned null",
|
||||
mLauncher.getWorkspace().switchToAllApps());
|
||||
@@ -108,6 +110,7 @@ public class TaplTestsQuickstep extends AbstractQuickStepTest {
|
||||
|
||||
@Test
|
||||
@PortraitLandscape
|
||||
@PlatinumTest(focusArea = "launcher")
|
||||
public void testOverview() throws Exception {
|
||||
startTestAppsWithCheck();
|
||||
// mLauncher.pressHome() also tests an important case of pressing home while in background.
|
||||
@@ -175,6 +178,7 @@ public class TaplTestsQuickstep extends AbstractQuickStepTest {
|
||||
@NavigationModeSwitch
|
||||
@PortraitLandscape
|
||||
@ScreenRecord // b/195673272
|
||||
@PlatinumTest(focusArea = "launcher")
|
||||
public void testOverviewActions() throws Exception {
|
||||
// Experimenting for b/165029151:
|
||||
final Overview overview = mLauncher.goHome().switchToOverview();
|
||||
@@ -209,6 +213,7 @@ public class TaplTestsQuickstep extends AbstractQuickStepTest {
|
||||
@NavigationModeSwitch
|
||||
@PortraitLandscape
|
||||
@ScreenRecord // b/238461765
|
||||
@PlatinumTest(focusArea = "launcher")
|
||||
public void testSwitchToOverview() throws Exception {
|
||||
startTestAppsWithCheck();
|
||||
assertNotNull("Workspace.switchToOverview() returned null",
|
||||
@@ -221,6 +226,7 @@ public class TaplTestsQuickstep extends AbstractQuickStepTest {
|
||||
@Test
|
||||
@NavigationModeSwitch
|
||||
@PortraitLandscape
|
||||
@PlatinumTest(focusArea = "launcher")
|
||||
public void testBackground() throws Exception {
|
||||
startAppFast(CALCULATOR_APP_PACKAGE);
|
||||
final LaunchedAppState launchedAppState = getAndAssertLaunchedApp();
|
||||
@@ -275,6 +281,7 @@ public class TaplTestsQuickstep extends AbstractQuickStepTest {
|
||||
@Test
|
||||
@NavigationModeSwitch
|
||||
@PortraitLandscape
|
||||
@PlatinumTest(focusArea = "launcher")
|
||||
public void testQuickSwitchFromApp() throws Exception {
|
||||
startTestActivity(2);
|
||||
startTestActivity(3);
|
||||
@@ -304,6 +311,7 @@ public class TaplTestsQuickstep extends AbstractQuickStepTest {
|
||||
|
||||
@Test
|
||||
@ScreenRecord // b/242163205
|
||||
@PlatinumTest(focusArea = "launcher")
|
||||
public void testQuickSwitchToPreviousAppForTablet() throws Exception {
|
||||
assumeTrue(mLauncher.isTablet());
|
||||
startTestActivity(2);
|
||||
@@ -335,6 +343,7 @@ public class TaplTestsQuickstep extends AbstractQuickStepTest {
|
||||
@Test
|
||||
@NavigationModeSwitch
|
||||
@PortraitLandscape
|
||||
@PlatinumTest(focusArea = "launcher")
|
||||
public void testQuickSwitchFromHome() throws Exception {
|
||||
startTestActivity(2);
|
||||
mLauncher.goHome().quickSwitchToPreviousApp();
|
||||
@@ -346,6 +355,7 @@ public class TaplTestsQuickstep extends AbstractQuickStepTest {
|
||||
@Test
|
||||
@PortraitLandscape
|
||||
@NavigationModeSwitch
|
||||
@PlatinumTest(focusArea = "launcher")
|
||||
public void testPressBack() throws Exception {
|
||||
InstrumentationRegistry.getInstrumentation().getUiAutomation().adoptShellPermissionIdentity(
|
||||
READ_DEVICE_CONFIG_PERMISSION);
|
||||
@@ -364,6 +374,7 @@ public class TaplTestsQuickstep extends AbstractQuickStepTest {
|
||||
@Test
|
||||
@PortraitLandscape
|
||||
@TaskbarModeSwitch(mode = PERSISTENT)
|
||||
@PlatinumTest(focusArea = "launcher")
|
||||
public void testOverviewForTablet() throws Exception {
|
||||
assumeTrue(mLauncher.isTablet());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user