Fix existing Espresso tests (#3450)

* Fix existing Espresso tests

* Convert class to kotlin
This commit is contained in:
Vivek Maskara 2020-03-02 15:17:24 -07:00 committed by GitHub
parent 36cafd7c39
commit 65ec071493
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 48 additions and 13 deletions

View file

@ -25,6 +25,7 @@ class UITestHelper {
fun loginUser() {
try {
//Perform Login
sleep(3000)
onView(ViewMatchers.withId(R.id.login_username))
.perform(ViewActions.clearText(), ViewActions.typeText(getTestUsername()))
closeSoftKeyboard()