Skip to content

Commit fd35444

Browse files
brettchabotcopybara-androidxtest
authored andcommitted
Suppress flaky AdapterDataIntegrationTest#clickAroundList
PiperOrigin-RevId: 606261224
1 parent 61eaca3 commit fd35444

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

espresso/core/javatests/androidx/test/espresso/action/AdapterDataIntegrationTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import androidx.test.ext.junit.rules.ActivityScenarioRule;
3232
import androidx.test.ext.junit.runners.AndroidJUnit4;
3333
import androidx.test.filters.LargeTest;
34+
import androidx.test.filters.Suppress;
3435
import androidx.test.ui.app.LongListActivity;
3536
import androidx.test.ui.app.R;
3637
import java.util.Map;
@@ -48,11 +49,17 @@ public class AdapterDataIntegrationTest {
4849
new ActivityScenarioRule<>(LongListActivity.class);
4950

5051
@Test
52+
@Suppress // flaky
5153
public void clickAroundList() {
5254
onData(allOf(is(instanceOf(Map.class)), hasEntry(is(LongListActivity.STR), is("item: 99"))))
5355
.perform(click());
5456
onView(withId(R.id.selection_row_value)).check(matches(withText("99")));
5557

58+
// approximately 1-2% of the time this click isn't delivered to the onClickListener for unknown
59+
// reasons
60+
// the click is delivered to the right coordinates, but just appears to get silently swallowed
61+
// by
62+
// the android platform
5663
onData(allOf(is(instanceOf(Map.class)), hasEntry(is(LongListActivity.STR), is("item: 1"))))
5764
.perform(click());
5865

0 commit comments

Comments
 (0)