Compare commits
1 Commits
f1d7ffba17
...
58b363b8dc
Author | SHA1 | Date | |
---|---|---|---|
58b363b8dc |
@ -33,10 +33,13 @@ import java.io.File
|
||||
import java.io.IOException
|
||||
import java.util.Locale
|
||||
|
||||
val defaultUrl = (System.getenv("SELFOSS_URL") ?: "").ifEmpty { "http://10.0.2.2:8888" }
|
||||
|
||||
fun performLogin(someUrl: String? = null) {
|
||||
Log.i("AUTOMATION", "The url used will be ${if (!someUrl.isNullOrEmpty()) someUrl else defaultUrl}")
|
||||
onView(withId(R.id.urlView)).perform(click()).perform(
|
||||
typeTextIntoFocusedView(
|
||||
if (!someUrl.isNullOrEmpty()) someUrl else "http://10.0.2.2:8888",
|
||||
if (!someUrl.isNullOrEmpty()) someUrl else defaultUrl,
|
||||
),
|
||||
)
|
||||
onView(withId(R.id.signInButton)).perform(click())
|
||||
|
Loading…
x
Reference in New Issue
Block a user