简化视图~
在这种情况下有效:
it("should confirm the the prop", () => {
browser.debug() // works fine
})
在这种情况下不起作用:
it("should confirm the the prop", async() => {
browser.debug() // doesn't `freeze` the driven browser for debugging
})
尽管这让我困惑了一段时间,但当我公布问题的那一刻,就会弹出一个答案。browser.debug()
需要await
。
现在它工作了:
it("should confirm the the prop", async() => {
await browser.debug()
})