如何仅在特定情况下跳过规范文件中的整个测试集? 示例代码:
context("Conditional run", () => {
before(() => {
cy.get("div").then($div => {
if (!Cypress.$("div[title='OK']", $comp).length) {
// continue with the tests
} else {
// skip ALL the tests
}
});
});
});