[Chooser/ResolverActivity] Fix flakiness in work profile tests
Sometimes work profile tests were failing
because work profile tab button click was not
handled. Most likely it is related to the
opening animation of the drawer layout.
Added retry mechanism to click on the button
again if the tab was not selected.
Test: repeated run of ResolverActivityWorkProfileTest
Test: atest com.android.internal.app.ChooserActivityWorkProfileTest
Test: atest com.android.internal.app.ResolverActivityWorkProfileTest
Test: atest com.android.intentresolve.UnbundledChooserActivityWorkProfileTest
Bug: 262018267
Change-Id: I89960ede6093aa3b32701fe012748d021362b2b8
1 file changed