1
0
mirror of https://gitlab.shinice.net/pixeldroid/PixelDroid synced 2025-01-11 06:35:15 +01:00

check coverage without test

This commit is contained in:
Ulysse Widmer 2020-03-30 20:46:38 +02:00
parent 5e2c6c3724
commit c572d60213

View File

@ -90,17 +90,16 @@ class MockedServerTest {
onView(withId(R.id.accountNameTextView)).check(matches(withText("deerbard_photo"))) onView(withId(R.id.accountNameTextView)).check(matches(withText("deerbard_photo")))
} }
@Test // @Test
fun swipingDownOnHomepageShowsMorePosts() { // fun swipingDownOnHomepageShowsMorePosts() {
Thread.sleep(1000) // Thread.sleep(1000)
//
val firstDesc = allOf(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())
.perform(ViewActions.swipeDown()) // onView(allOf(withId(R.id.description))).check(matches(firstDesc))
onView(firstDesc).check(matches(firstDesc)) // }
}
@Test @Test
fun testNotificationsList() { fun testNotificationsList() {
ActivityScenario.launch(MainActivity::class.java).onActivity{ ActivityScenario.launch(MainActivity::class.java).onActivity{