From 82b6f8fd47447ac490c12e9f42ae5d1f92e3f6e9 Mon Sep 17 00:00:00 2001 From: Yanting Yang Date: Wed, 6 Dec 2023 14:51:54 +0000 Subject: [PATCH] Ignore failing tests of com.android.settings.wallpaper Bug: 315124270 Test: post-submit Change-Id: I5f920798bd0cf5057d9e644aecce11008fb5fbf7 --- .../android/settings/wallpaper/FallbackHomeActivityTest.java | 2 ++ .../settings/wallpaper/WallpaperSuggestionActivityTest.java | 3 +++ .../wallpaper/WallpaperTypePreferenceControllerTest.java | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/tests/robotests/src/com/android/settings/wallpaper/FallbackHomeActivityTest.java b/tests/robotests/src/com/android/settings/wallpaper/FallbackHomeActivityTest.java index b89f4b37a40..0a5903313ac 100644 --- a/tests/robotests/src/com/android/settings/wallpaper/FallbackHomeActivityTest.java +++ b/tests/robotests/src/com/android/settings/wallpaper/FallbackHomeActivityTest.java @@ -30,6 +30,7 @@ import android.os.Handler; import com.android.settings.FallbackHome; import org.junit.Before; +import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.MockitoAnnotations; @@ -64,6 +65,7 @@ public class FallbackHomeActivityTest { mController = Robolectric.buildActivity(FallbackHome.class); } + @Ignore("b/315124270") @Test @Config(shadows = ShadowWallpaperManager.class) public void wallpaperColorsChangedListener_ensured_removed() { diff --git a/tests/robotests/src/com/android/settings/wallpaper/WallpaperSuggestionActivityTest.java b/tests/robotests/src/com/android/settings/wallpaper/WallpaperSuggestionActivityTest.java index 6201bcb1191..1fff4061180 100644 --- a/tests/robotests/src/com/android/settings/wallpaper/WallpaperSuggestionActivityTest.java +++ b/tests/robotests/src/com/android/settings/wallpaper/WallpaperSuggestionActivityTest.java @@ -31,6 +31,7 @@ import com.google.android.setupcompat.util.WizardManagerHelper; import org.junit.After; import org.junit.Before; +import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; @@ -100,6 +101,7 @@ public class WallpaperSuggestionActivityTest { .isTrue(); } + @Ignore("b/315124270") @Test public void addExtras_intentFromSetupWizard_extrasHasWallpaperOnlyAndLaunchedSuw() { WallpaperSuggestionActivity activity = @@ -117,6 +119,7 @@ public class WallpaperSuggestionActivityTest { .isEqualTo("app_launched_suw"); } + @Ignore("b/315124270") @Test public void addExtras_intentNotFromSetupWizard_extrasHasFocusWallpaper() { WallpaperSuggestionActivity activity = Robolectric.buildActivity( diff --git a/tests/robotests/src/com/android/settings/wallpaper/WallpaperTypePreferenceControllerTest.java b/tests/robotests/src/com/android/settings/wallpaper/WallpaperTypePreferenceControllerTest.java index 8871cc8bb27..c88b263083a 100644 --- a/tests/robotests/src/com/android/settings/wallpaper/WallpaperTypePreferenceControllerTest.java +++ b/tests/robotests/src/com/android/settings/wallpaper/WallpaperTypePreferenceControllerTest.java @@ -27,6 +27,7 @@ import androidx.preference.Preference; import com.android.settings.core.BasePreferenceController; import org.junit.Before; +import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.MockitoAnnotations; @@ -50,12 +51,14 @@ public class WallpaperTypePreferenceControllerTest { mPreference = new Preference(mContext); } + @Ignore("b/315124270") @Test public void getAvailabilityStatus_byDefault_shouldBeShown() { assertThat(mController.getAvailabilityStatus()) .isEqualTo(BasePreferenceController.AVAILABLE); } + @Ignore("b/315124270") @Test public void testHandlePreferenceTreeClick_intentNull_shouldDoNothing() { mPreference.setIntent(null); @@ -65,6 +68,7 @@ public class WallpaperTypePreferenceControllerTest { assertThat(handled).isFalse(); } + @Ignore("b/315124270") @Test public void testHandlePreferenceTreeClick_shouldLaunchIntent() { mPreference.setIntent(mIntent);