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.
napperley
09/10/2018, 3:31 AM
Looks as though there is either a serious bug or regression in the Kotlinx Coroutines JS lib with running promises.
napperley
09/10/2018, 3:36 AM
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.