fix multiple post on feed detection

This commit is contained in:
Ulysse Widmer 2020-03-30 20:01:28 +02:00
parent 827db70972
commit 5e2c6c3724
1 changed files with 2 additions and 1 deletions

View File

@ -15,6 +15,7 @@ import okhttp3.mockwebserver.Dispatcher
import okhttp3.mockwebserver.MockResponse import okhttp3.mockwebserver.MockResponse
import okhttp3.mockwebserver.MockWebServer import okhttp3.mockwebserver.MockWebServer
import okhttp3.mockwebserver.RecordedRequest import okhttp3.mockwebserver.RecordedRequest
import org.hamcrest.CoreMatchers.allOf
import org.junit.Before import org.junit.Before
import org.junit.Rule import org.junit.Rule
import org.junit.Test import org.junit.Test
@ -93,7 +94,7 @@ class MockedServerTest {
fun swipingDownOnHomepageShowsMorePosts() { fun swipingDownOnHomepageShowsMorePosts() {
Thread.sleep(1000) Thread.sleep(1000)
val firstDesc = withId(R.id.description) val firstDesc = allOf(withId(R.id.description))
onView(withId(R.id.view_pager)) onView(withId(R.id.view_pager))
.perform(ViewActions.swipeUp()) .perform(ViewActions.swipeUp())
.perform(ViewActions.swipeDown()) .perform(ViewActions.swipeDown())