Make test be useful

This commit is contained in:
Matthieu 2020-03-06 10:04:31 +01:00
parent 5a11c72456
commit dbe936faa4
1 changed files with 3 additions and 1 deletions

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"))))
}
}