Javascript – Difference between cy.then(() => func()) and cy.wrap(null).then(() => func())
I'm struggling with waiting for async functions to finish. In particular, I found these two methods to wait for completion of an async function before the test continues but don't know the difference (if there is one): cy.then(() => myAsyncFunction())…