Merge "Clean up screen record for tests" into sc-v2-dev

This commit is contained in:
Alex Chau
2021-07-29 17:00:12 +00:00
committed by Android (Google) Code Review
4 changed files with 2 additions and 5 deletions
@@ -16,7 +16,6 @@ import androidx.test.filters.LargeTest;
import androidx.test.runner.AndroidJUnit4;
import com.android.launcher3.Launcher;
import com.android.launcher3.util.rule.ScreenRecordRule.ScreenRecord;
import com.android.quickstep.views.DigitalWellBeingToast;
import com.android.quickstep.views.RecentsView;
import com.android.quickstep.views.TaskView;
@@ -33,7 +32,6 @@ public class DigitalWellBeingToastTest extends AbstractQuickStepTest {
resolveSystemApp(Intent.CATEGORY_APP_CALCULATOR);
@Test
@ScreenRecord //b/193440212
public void testToast() throws Exception {
startAppFast(CALCULATOR_PACKAGE);
@@ -214,7 +214,7 @@ public class FallbackRecentsTest {
// b/143488140
//@NavigationModeSwitch
@Test
@ScreenRecord // b/194484556
@ScreenRecord // b/187080582
public void testOverview() {
startAppFast(getAppPackageName());
startAppFast(resolveSystemApp(Intent.CATEGORY_APP_CALCULATOR));
@@ -93,7 +93,6 @@ public class TaplTestsQuickstep extends AbstractQuickStepTest {
@Test
@PortraitLandscape
@ScreenRecord //b/193440212
public void testOverview() throws Exception {
startTestAppsWithCheck();
// mLauncher.pressHome() also tests an important case of pressing home while in background.
@@ -159,6 +158,7 @@ public class TaplTestsQuickstep extends AbstractQuickStepTest {
@Test
@NavigationModeSwitch
@PortraitLandscape
@ScreenRecord //b/193125090
public void testOverviewActions() throws Exception {
// Experimenting for b/165029151:
final Overview overview = mLauncher.pressHome().switchToOverview();
@@ -87,7 +87,6 @@ public class RequestPinItemTest extends AbstractLauncherUiTest {
}
@Test
@ScreenRecord //b/192005114
public void testPinWidgetNoConfig_customPreview() throws Throwable {
// Command to set custom preview
Intent command = RequestPinItemActivity.getCommandIntent(