From 13a3af7f072694b9bdf08d9c670ea6e935d38c4b Mon Sep 17 00:00:00 2001 From: Tsung-Mao Fang Date: Tue, 18 Jan 2022 14:51:56 +0800 Subject: [PATCH] Ignore broken tests Test: run robo test Bug: 215062934 Bug: 215062846 Bug: 215056068 Change-Id: Ia5fb9bb8d28bf745d69f3cc83cfeb07b982d029c --- .../telephony/RenameMobileNetworkDialogFragmentTest.java | 1 + .../settings/nfc/NfcPaymentPreferenceControllerTest.java | 2 ++ .../settings/notification/zen/ZenModeEventRuleSettingsTest.java | 2 ++ .../notification/zen/ZenModeScheduleRuleSettingsTest.java | 2 ++ 4 files changed, 7 insertions(+) diff --git a/tests/robotests/src/com/android/settings/network/telephony/RenameMobileNetworkDialogFragmentTest.java b/tests/robotests/src/com/android/settings/network/telephony/RenameMobileNetworkDialogFragmentTest.java index ea440c771e0..b2920cd1c2c 100644 --- a/tests/robotests/src/com/android/settings/network/telephony/RenameMobileNetworkDialogFragmentTest.java +++ b/tests/robotests/src/com/android/settings/network/telephony/RenameMobileNetworkDialogFragmentTest.java @@ -66,6 +66,7 @@ import java.util.ArrayList; import java.util.List; @RunWith(RobolectricTestRunner.class) +@Ignore @Config(shadows = ShadowAlertDialogCompat.class) public class RenameMobileNetworkDialogFragmentTest { diff --git a/tests/robotests/src/com/android/settings/nfc/NfcPaymentPreferenceControllerTest.java b/tests/robotests/src/com/android/settings/nfc/NfcPaymentPreferenceControllerTest.java index 026fdeebf9a..ce2d87b9e21 100644 --- a/tests/robotests/src/com/android/settings/nfc/NfcPaymentPreferenceControllerTest.java +++ b/tests/robotests/src/com/android/settings/nfc/NfcPaymentPreferenceControllerTest.java @@ -32,6 +32,7 @@ import com.android.settings.nfc.PaymentBackend.PaymentAppInfo; import com.android.settings.testutils.shadow.ShadowNfcAdapter; import org.junit.Before; +import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; @@ -133,6 +134,7 @@ public class NfcPaymentPreferenceControllerTest { } @Test + @Ignore public void onPaymentAppsChanged_shouldRefreshSummary() { mController.setPaymentBackend(mPaymentBackend); mController.displayPreference(mScreen); diff --git a/tests/robotests/src/com/android/settings/notification/zen/ZenModeEventRuleSettingsTest.java b/tests/robotests/src/com/android/settings/notification/zen/ZenModeEventRuleSettingsTest.java index 8ebac3097e0..f0409ce93f8 100644 --- a/tests/robotests/src/com/android/settings/notification/zen/ZenModeEventRuleSettingsTest.java +++ b/tests/robotests/src/com/android/settings/notification/zen/ZenModeEventRuleSettingsTest.java @@ -36,6 +36,7 @@ import androidx.fragment.app.FragmentActivity; import com.android.settings.R; import org.junit.Before; +import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; @@ -86,6 +87,7 @@ public class ZenModeEventRuleSettingsTest { } @Test + @Ignore public void onCreate_noRuleId_shouldToastAndFinishAndNoCrash() { final String expected = mContext.getString(R.string.zen_mode_rule_not_found_text); diff --git a/tests/robotests/src/com/android/settings/notification/zen/ZenModeScheduleRuleSettingsTest.java b/tests/robotests/src/com/android/settings/notification/zen/ZenModeScheduleRuleSettingsTest.java index ff96d687902..601ec092fa7 100644 --- a/tests/robotests/src/com/android/settings/notification/zen/ZenModeScheduleRuleSettingsTest.java +++ b/tests/robotests/src/com/android/settings/notification/zen/ZenModeScheduleRuleSettingsTest.java @@ -36,6 +36,7 @@ import androidx.fragment.app.FragmentActivity; import com.android.settings.R; import org.junit.Before; +import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; @@ -83,6 +84,7 @@ public class ZenModeScheduleRuleSettingsTest { } @Test + @Ignore public void onCreate_noRuleId_shouldToastAndFinishAndNoCrash() { final String expected = mContext.getString(R.string.zen_mode_rule_not_found_text);