Reintroduce @FlakyTest to flaky CallFeaturesSettings test
Testing these tests require the phone is on/unlocked, which
doesnt seem to be happening properly for automated tests.
Bug: 145232083
Test: atest TeleServiceTests
Change-Id: I1321454f69b7c1e65336e961e12a633341000b43
diff --git a/tests/src/com/android/phone/CallFeaturesSettingTest.java b/tests/src/com/android/phone/CallFeaturesSettingTest.java
index 0666c56..8f49b97 100644
--- a/tests/src/com/android/phone/CallFeaturesSettingTest.java
+++ b/tests/src/com/android/phone/CallFeaturesSettingTest.java
@@ -28,6 +28,7 @@
import android.content.Context;
import androidx.test.InstrumentationRegistry;
+import androidx.test.filters.FlakyTest;
import androidx.test.rule.ActivityTestRule;
import com.android.internal.telephony.IccCard;
@@ -61,6 +62,7 @@
keepScreenOn(mRule, mActivity);
}
+ @FlakyTest
@Test
public void onResume_fdnIsAvailable_shouldShowFdnMenu() throws NoSuchFieldException,
IllegalAccessException {
@@ -75,6 +77,7 @@
onView(withText(R.string.fdn)).check(matches(isDisplayed()));
}
+ @FlakyTest
@Test
public void onResume_iccCardIsNull_shouldNotShowFdnMenu() throws NoSuchFieldException,
IllegalAccessException {
@@ -88,6 +91,7 @@
onView(withText(R.string.fdn)).check(doesNotExist());
}
+ @FlakyTest
@Test
public void onResume_fdnIsNotAvailable_shouldNotShowFdnMenu() throws NoSuchFieldException,
IllegalAccessException {