Cypress 在重试尝试 2 期间通过了未捕获异常测试
这是我遇到的一个奇怪的错误。
我的测试由于与 DOM 分离的元素而失败(这不是问题),并且它会自动触发重试,因为我启用了重试并将尝试次数设置为 2。 然而,一旦 cypress 开始执行第二次尝试,我就会收到以下未捕获的异常。
要点是,cypress 通过了第二次尝试期间发生未捕获异常的测试。 这让我相信测试已经通过,而实际上,在第二次尝试期间没有执行任何 cypress 命令。 我无法在任何其他代码中重现此内容,不幸的是,由于公司政策,无法共享脚本。 这里的任何提示、解决方案、调试指南都会有所帮助。
It's a weird bug that I am experiencing.
My test fails due to a detached element from DOM(this is not the issue) and it auto-triggers a retry since I have retries enabled and set the number of attempts to 2.
However, as soon as cypress begins executing the second attempt, I am getting the following uncaught exception.
The point is, cypress passes the test where the uncaught exception occurred during the second attempt.
It's causing me to believe that the tests have passed, whereas, in reality, no cypress commands were executed during the second attempt.
I am unable to reproduce this in any other code, and unfortunately, cannot share the scripts due to company policy.
Any tips, resolution, debug guidance here would be helpful.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论