用柏树取消请求
I'm looking for a way to expect a canceled request with cypress. Any idea? :)
I cancel the previous requests if the user sends too many requests and I want to test it.
I tried to intercept POST requests with the alias, counted requests,...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
命令正在以与JavaScript异步工作的队列运行。
为了在队列运行后断言计数器值,请将断言包含在
中。然后()
。Commands are running on a queue which works asynchronously from the javascript.
To assert the counter value after the queue has run, wrap the assertion in a
.then()
.