Refactor LoginActivity #2690 (#2775)

* Refactor LoginActivity #2690

* Fixed Error cannot find symbol
This commit is contained in:
Madhur Gupta 2019-03-28 17:49:49 +05:30 committed by neslihanturan
parent 4071d66d45
commit 7c77530c2e
7 changed files with 149 additions and 125 deletions

View file

@ -22,12 +22,12 @@ class UITestHelper {
fun loginUser() {
try {
//Perform Login
onView(ViewMatchers.withId(R.id.loginUsername))
onView(ViewMatchers.withId(R.id.login_username))
.perform(ViewActions.clearText(), ViewActions.typeText(getTestUsername()))
onView(ViewMatchers.withId(R.id.loginPassword))
onView(ViewMatchers.withId(R.id.login_password))
.perform(ViewActions.clearText(), ViewActions.typeText(getTestUserPassword()))
closeSoftKeyboard()
onView(ViewMatchers.withId(R.id.loginButton))
onView(ViewMatchers.withId(R.id.login_button))
.perform(ViewActions.click())
sleep(5000)
} catch (ignored: NoMatchingViewException) {