title: Skip test in Cypress
body: <p>How can I skip the whole set of tests in a spec file only in a specific case?
  Sample code:</p>
  <pre><code>context(&quot;Conditional run&quot;, () =&gt; {
      before(() =&gt; {
          cy.get(&quot;div&quot;).then($div =&gt; {
              if (!Cypress.$(&quot;div[title='OK']&quot;, $comp).length) {
                  // continue with the tests
              } else {
                  // skip ALL the tests
              }
          });
      });
    });
  </code></pre>