Merge "Remove two timeouts in ResolverActivityTest." into tm-dev am: 2f98c9a4cc

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17869612

Change-Id: I2be16c768281e65d515f49e9a974a57c324a31f4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
TreeHugger Robot
2022-04-20 21:58:07 +00:00
committed by Automerger Merge Worker

View File

@@ -516,8 +516,6 @@ public class ResolverActivityTest {
onView(withText(R.string.resolver_work_tab)) onView(withText(R.string.resolver_work_tab))
.perform(click()); .perform(click());
waitForIdle(); waitForIdle();
// wait for the share sheet to expand
Thread.sleep(ChooserActivity.LIST_VIEW_UPDATE_INTERVAL_IN_MILLIS);
onView(first(allOf(withText(workResolvedComponentInfos.get(0) onView(first(allOf(withText(workResolvedComponentInfos.get(0)
.getResolveInfoAt(0).activityInfo.applicationInfo.name), isCompletelyDisplayed()))) .getResolveInfoAt(0).activityInfo.applicationInfo.name), isCompletelyDisplayed())))
.perform(click()); .perform(click());
@@ -616,8 +614,6 @@ public class ResolverActivityTest {
onView(withText(R.string.resolver_work_tab)) onView(withText(R.string.resolver_work_tab))
.perform(click()); .perform(click());
waitForIdle(); waitForIdle();
// wait for the share sheet to expand
Thread.sleep(ChooserActivity.LIST_VIEW_UPDATE_INTERVAL_IN_MILLIS);
onView(first(allOf( onView(first(allOf(
withText(workResolvedComponentInfos.get(0) withText(workResolvedComponentInfos.get(0)
.getResolveInfoAt(0).activityInfo.applicationInfo.name), .getResolveInfoAt(0).activityInfo.applicationInfo.name),