mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
Fix existing Espresso tests (#3450)
* Fix existing Espresso tests * Convert class to kotlin
This commit is contained in:
parent
36cafd7c39
commit
65ec071493
5 changed files with 48 additions and 13 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue