1
0
mirror of https://gitlab.shinice.net/pixeldroid/PixelDroid synced 2024-12-23 13:33:36 +01:00

Make test be useful

This commit is contained in:
Matthieu 2020-03-06 10:04:31 +01:00
parent 5a11c72456
commit dbe936faa4

View File

@ -11,6 +11,7 @@ import org.hamcrest.Matchers.not
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith
import java.lang.Thread.sleep
@RunWith(AndroidJUnit4::class)
class ProfileTest {
@ -27,6 +28,7 @@ class ProfileTest {
@Test
fun testAccountNameTextView() {
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"))))
}
}