Skip to content

Commit 9e0c2d4

Browse files
committed
Wait fix for test
1 parent 4aeb1c7 commit 9e0c2d4

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

sample/src/androidTest/java/info/hannes/logcat/LogcatTest.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ import androidx.test.filters.SdkSuppress
99
import androidx.test.rule.GrantPermissionRule
1010
import com.moka.lib.assertions.WaitingAssertion
1111
import com.moka.utils.Screenshot
12-
import info.hannes.logcat.utils.MatchOperator
13-
import info.hannes.logcat.utils.RecyclerViewItemCountAssertion
1412
import org.hamcrest.Matchers.allOf
1513
import org.junit.Rule
1614
import org.junit.Test
@@ -35,7 +33,8 @@ class LogcatTest {
3533

3634
WaitingAssertion.checkAssertion(R.id.log_recycler, isDisplayed(), 1500)
3735
Screenshot.takeScreenshot("Step1")
38-
onView(withId(R.id.log_recycler)).check(RecyclerViewItemCountAssertion(15, MatchOperator.GRATER_EQUAL))
36+
// TODO Moka 0.8 comes with assertRecyclerAdapterItemsCount()
37+
WaitingAssertion.assertAdapterMinimumItemsCount(R.id.log_recycler, 15, 1500)
3938
Screenshot.takeScreenshot("End")
4039
}
4140

0 commit comments

Comments
 (0)