Skip to content

Commit

Permalink
Created test to reproduce the issue in #37
Browse files Browse the repository at this point in the history
  • Loading branch information
Sloy committed Apr 3, 2017
1 parent 6cc87a3 commit 19753b4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ public void checkVisibleViews_breaksWhenNeeded() {
}
}

@Test
public void checkVisible_withRepeatedViews() throws Exception {
assertDisplayed("Repeated");
}

@Test
public void checkInvisibleViews() {
assertNotDisplayed(R.id.invisible_view);
Expand Down
12 changes: 12 additions & 0 deletions sample/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world"/>
<TextView
android:id="@+id/repeated_view_1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Repeated"
/>
<TextView
android:id="@+id/repeated_view_2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Repeated"
/>

<TextView
android:id="@+id/invisible_view"
Expand Down

0 comments on commit 19753b4

Please sign in to comment.