Merge "Ignore some Chooser tests that flake on races."
This commit is contained in:
@@ -81,7 +81,6 @@ import android.net.Uri;
|
||||
import android.os.UserHandle;
|
||||
import android.provider.DeviceConfig;
|
||||
import android.service.chooser.ChooserTarget;
|
||||
import android.util.Log;
|
||||
import android.view.View;
|
||||
|
||||
import androidx.annotation.CallSuper;
|
||||
@@ -2023,7 +2022,7 @@ public class ChooserActivityTest {
|
||||
.check(matches(isDisplayed()));
|
||||
}
|
||||
|
||||
@Test
|
||||
@Test @Ignore("b/222124533")
|
||||
public void testAppTargetLogging() throws InterruptedException {
|
||||
Intent sendIntent = createSendTextIntent();
|
||||
List<ResolvedComponentInfo> resolvedComponentInfos = createResolvedComponentsForTest(2);
|
||||
@@ -2042,6 +2041,10 @@ public class ChooserActivityTest {
|
||||
mActivityRule.launchActivity(Intent.createChooser(sendIntent, null));
|
||||
waitForIdle();
|
||||
|
||||
// TODO(b/222124533): other test cases use a timeout to make sure that the UI is fully
|
||||
// populated; without one, this test flakes. Ideally we should address the need for a
|
||||
// timeout everywhere instead of introducing one to fix this particular test.
|
||||
|
||||
assertThat(activity.getAdapter().getCount(), is(2));
|
||||
onView(withIdFromRuntimeResource("profile_button")).check(doesNotExist());
|
||||
|
||||
@@ -2324,7 +2327,7 @@ public class ChooserActivityTest {
|
||||
assertThat(logger.numCalls(), is(6));
|
||||
}
|
||||
|
||||
@Test
|
||||
@Test @Ignore("b/222124533")
|
||||
public void testSwitchProfileLogging() throws InterruptedException {
|
||||
// enable the work tab feature flag
|
||||
ResolverActivity.ENABLE_TABBED_VIEW = true;
|
||||
|
||||
Reference in New Issue
Block a user