If you wrap your expect(foo).to.equal('foo'); into a Cypress command then Cypress automatically resolves the promise and you do not need async/await:
確定! 回上一頁