mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
* Refactor LoginActivity #2690 * Fixed Error cannot find symbol
This commit is contained in:
parent
4071d66d45
commit
7c77530c2e
7 changed files with 149 additions and 125 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue