How can I skip the whole set of tests in a spec file only in a specific case? Sample code:
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
}
});
});
});