File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
espresso/core/javatests/androidx/test/espresso/action Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 31
31
import androidx .test .ext .junit .rules .ActivityScenarioRule ;
32
32
import androidx .test .ext .junit .runners .AndroidJUnit4 ;
33
33
import androidx .test .filters .LargeTest ;
34
+ import androidx .test .filters .Suppress ;
34
35
import androidx .test .ui .app .LongListActivity ;
35
36
import androidx .test .ui .app .R ;
36
37
import java .util .Map ;
@@ -48,11 +49,17 @@ public class AdapterDataIntegrationTest {
48
49
new ActivityScenarioRule <>(LongListActivity .class );
49
50
50
51
@ Test
52
+ @ Suppress // flaky
51
53
public void clickAroundList () {
52
54
onData (allOf (is (instanceOf (Map .class )), hasEntry (is (LongListActivity .STR ), is ("item: 99" ))))
53
55
.perform (click ());
54
56
onView (withId (R .id .selection_row_value )).check (matches (withText ("99" )));
55
57
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
56
63
onData (allOf (is (instanceOf (Map .class )), hasEntry (is (LongListActivity .STR ), is ("item: 1" ))))
57
64
.perform (click ());
58
65
You can’t perform that action at this time.
0 commit comments