【发布时间】:2019-03-07 22:39:33
【问题描述】:
我正在尝试检查某些内容是否存在于不同的页面上。例如:
const contentCount = Selector('.some-element').childElementCount
.expect(contentCount).gte(1, 'The related content is missing.')
... 工作正常,除了在第一个断言失败后测试停止。这并不理想,因为我正在尝试生成一个同时显示所有失败断言的报告。
在断言失败后如何让测试继续运行?
【问题讨论】:
标签: testing automated-tests e2e-testing testcafe assertion