Sergio Crespo Toubes
09/12/2019, 2:27 PMcoroutines
and suspend functions
i have to use delay
function after the tested function. Any idea how can i solution these? Example:
// LOGIN TEST
Given("login form"){
val presenter = initPresenter()
When("login button click") {
presenter.loginUser("nick", "password")
delay(500)
Then("load home") {
verify(exactly = 1) {
mView.loadHome()
}
}
}
}
// LOGIN PRESENTER
fun loginUser(nick: String, password: String) = MainScope().launch {
}