mirror of
https://github.com/hmalik144/Driver.git
synced 2026-03-17 23:16:00 +00:00
- lowered espresso version
Took 16 minutes
This commit is contained in:
@@ -113,7 +113,7 @@ dependencies {
|
||||
/ * Android Espresso */
|
||||
def testJunitVersion = "1.1.5"
|
||||
def testRunnerVersion = "1.5.2"
|
||||
def espressoVersion = "3.5.1"
|
||||
def espressoVersion = "3.5.0"
|
||||
androidTestImplementation "androidx.test.ext:junit:$testJunitVersion"
|
||||
androidTestImplementation "androidx.test.espresso:espresso-core:$espressoVersion"
|
||||
androidTestImplementation "androidx.test.espresso.idling:idling-concurrent:$espressoVersion"
|
||||
|
||||
@@ -27,7 +27,6 @@ open class FirebaseTest<T : BaseActivity<*>>(
|
||||
@JvmStatic
|
||||
@BeforeClass
|
||||
fun setupFirebase() {
|
||||
// val localHost = if (BuildConfig.LocalState) "10.0.2.2" else "127.0.0.53"
|
||||
val localHost = "10.0.2.2"
|
||||
|
||||
FirebaseAuth.getInstance().useEmulator(localHost, 9099)
|
||||
|
||||
@@ -18,15 +18,10 @@ import org.junit.runner.RunWith
|
||||
@RunWith(AndroidJUnit4::class)
|
||||
class RegisteredUserAuthenticationActivityTest : FirebaseTest<LoginActivity>(LoginActivity::class.java, registered = true, signedIn = false) {
|
||||
|
||||
@Before
|
||||
fun waitForSplashScreen() {
|
||||
waitFor(100)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun verifyUserLogin_validUsernameAndPassword_loggedIn() {
|
||||
login {
|
||||
println("lets get the email = ${getEmail()}")
|
||||
waitFor(100)
|
||||
setEmail(getEmail())
|
||||
setPassword(USER_PASSWORD)
|
||||
clickLogin()
|
||||
|
||||
@@ -18,14 +18,10 @@ import org.junit.runner.RunWith
|
||||
@RunWith(AndroidJUnit4::class)
|
||||
class UserAuthenticationActivityTest : FirebaseTest<LoginActivity>(LoginActivity::class.java) {
|
||||
|
||||
@Before
|
||||
fun waitForSplashScreen() {
|
||||
waitFor(100)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun verifyUserRegistration_validUsernameAndPassword_loggedIn() {
|
||||
login {
|
||||
waitFor(100)
|
||||
clickRegister()
|
||||
}
|
||||
register {
|
||||
|
||||
Reference in New Issue
Block a user