我需要等待显示通知,像这样
cy.contains('p', 'Data processing is completed').should('be.visible', { timeout: 120000});
根据赛普拉斯文档,可以自定义 should 命令来实现超时:https ://docs.cypress.io/api/commands/should.html#Wait-until-the-assertions-pass但老实说我不能了解提供的示例如何用于我的任务。有人可以帮忙吗?