From 69f66f2d22b5ddd0cf42f31c64baa2d3dfc1ff1e Mon Sep 17 00:00:00 2001 From: Joshua Trask Date: Fri, 3 Dec 2021 20:16:48 +0000 Subject: [PATCH] Revert "Un-@Ignore 7 passing ChooserActivity tests." This reverts commit ec29931867f47c50e462b718f0cf45649f5a986d. Reason for revert: Test flakes around invalid mime type in the APS request. Switching tests to use valid mime types has unexpected consequences I'll address in future CLs. Change-Id: I9f09d0ce1ddd0eb357cab5dc2cfb49238b18af45 --- .../android/internal/app/ChooserActivityTest.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/core/tests/coretests/src/com/android/internal/app/ChooserActivityTest.java b/core/tests/coretests/src/com/android/internal/app/ChooserActivityTest.java index f8db060630388..cfcbc7dec7d17 100644 --- a/core/tests/coretests/src/com/android/internal/app/ChooserActivityTest.java +++ b/core/tests/coretests/src/com/android/internal/app/ChooserActivityTest.java @@ -269,7 +269,7 @@ public class ChooserActivityTest { onView(withId(R.id.content_preview_thumbnail)).check(matches(isDisplayed())); } - @Test + @Test @Ignore public void twoOptionsAndUserSelectsOne() throws InterruptedException { Intent sendIntent = createSendTextIntent(); List resolvedComponentInfos = createResolvedComponentsForTest(2); @@ -298,7 +298,7 @@ public class ChooserActivityTest { assertThat(chosen[0], is(toChoose)); } - @Test + @Test @Ignore public void fourOptionsStackedIntoOneTarget() throws InterruptedException { Intent sendIntent = createSendTextIntent(); @@ -351,7 +351,7 @@ public class ChooserActivityTest { } } - @Test + @Test @Ignore public void updateChooserCountsAndModelAfterUserSelection() throws InterruptedException { Intent sendIntent = createSendTextIntent(); List resolvedComponentInfos = createResolvedComponentsForTest(2); @@ -461,7 +461,7 @@ public class ChooserActivityTest { assertThat(chosen[0], is(toChoose)); } - @Test + @Test @Ignore public void hasOtherProfileTwoOptionsAndUserSelectsOne() throws Exception { // enable the work tab feature flag ResolverActivity.ENABLE_TABBED_VIEW = true; @@ -500,7 +500,7 @@ public class ChooserActivityTest { assertThat(chosen[0], is(toChoose)); } - @Test + @Test @Ignore public void hasLastChosenActivityAndOtherProfile() throws Exception { // enable the work tab feature flag ResolverActivity.ENABLE_TABBED_VIEW = true; @@ -1549,7 +1549,7 @@ public class ChooserActivityTest { assertThat(activity.getWorkListAdapter().getCount(), is(workProfileTargets)); } - @Test + @Test @Ignore public void testWorkTab_selectingWorkTabAppOpensAppInWorkProfile() throws InterruptedException { // enable the work tab feature flag ResolverActivity.ENABLE_TABBED_VIEW = true; @@ -1947,7 +1947,7 @@ public class ChooserActivityTest { .SharesheetTargetSelectedEvent.SHARESHEET_COPY_TARGET_SELECTED.getId())); } - @Test + @Test @Ignore public void testSwitchProfileLogging() throws InterruptedException { // enable the work tab feature flag ResolverActivity.ENABLE_TABBED_VIEW = true;