Cypress api wait to be executed after every command?

前端 未结 0 870
[愿得一人]
[愿得一人] 2021-01-20 00:18

I\'ve had lots of flaky tests because the commands were not waiting for the API calls to be completed. I found using:

cy.intercept(\'/api\').as(\'api\')
cy.wa         


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