How to Measure XHR Response Duration in Cypress?

后端 未结 0 1721
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-12 20:38

When I click on a button, an XHR (POST) is triggered, How can i measure the response time for that request?

cy.log(JSON.stringify(xhr.response.duration))
<         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题