https://kotlinlang.org logo
#coroutines
Title
# coroutines
n

napperley

09/09/2018, 6:47 AM
This test doesn't seem to execute. Nothing is outputted to the console except a Jest async timeout error message.
t

thevery

09/09/2018, 11:06 AM
Promise is like launch/async, not runBlocking, isn't it? I guess test finishes before request get executed
👌 1
e

enleur

09/09/2018, 3:14 PM
btw why do you use puppeteer instead of selenium?
n

napperley

09/09/2018, 10:07 PM
Easier to do testing with Puppeteer, apart from issues relating to async programming in a testing environment.
Looks as though there is either a serious bug or regression in the Kotlinx Coroutines JS lib with running promises.
Had to pass a named argument (start = CoroutineStart.UNDISPATCHED) to the promise function in order to get the test to run, however the test gets stuck at line 5 with the await function. A instance of the Web Browser opens but does nothing else apart from that.
2 Views