mirror of
https://gitlab.shinice.net/pixeldroid/PixelDroid
synced 2024-12-23 21:41:24 +01:00
Make test be useful
This commit is contained in:
parent
5a11c72456
commit
dbe936faa4
@ -11,6 +11,7 @@ import org.hamcrest.Matchers.not
|
|||||||
import org.junit.Rule
|
import org.junit.Rule
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import org.junit.runner.RunWith
|
import org.junit.runner.RunWith
|
||||||
|
import java.lang.Thread.sleep
|
||||||
|
|
||||||
@RunWith(AndroidJUnit4::class)
|
@RunWith(AndroidJUnit4::class)
|
||||||
class ProfileTest {
|
class ProfileTest {
|
||||||
@ -27,6 +28,7 @@ class ProfileTest {
|
|||||||
@Test
|
@Test
|
||||||
fun testAccountNameTextView() {
|
fun testAccountNameTextView() {
|
||||||
onView(withId(R.id.button)).perform(click())
|
onView(withId(R.id.button)).perform(click())
|
||||||
onView(withId(R.id.accountName)).check(matches(not(withText("No Name"))))
|
sleep(1000)
|
||||||
|
onView(withId(R.id.accountName)).check(matches(not(withText("No Username"))))
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user