title: Method in cypress that checks that certain hours are displayed correctly
body: <p>I need to develop a method in cypress whereby I check 3 cases of rounding an hour.</p>
  <p>Example for the second case which I would like to include in a general method if a specific argument is given to that method (I know it's not a correct syntax, but just as an idea) :</p>
  <pre><code>   ( cy.contains('00') &amp;&amp; cy.contains('30') ).should('be.visible');
     ( cy.contains('15') &amp;&amp; cy.contains('45') ).should('not.exist')
  </code></pre>
  <p>I don't know if I can use an if syntax with multiple and :</p>
  <p>-the 15 minute case: all displayed times must be rounded to 15 minute intervals (10:00AM, 10:15AM, 10:30AM, 10:45AM etc). Therefore, I should check that that page contains after &quot;:&quot; 00, 15, 30 and 45, so 4 cases</p>
  <p>-the 30 minutes case: all the displayed times must be rounded to 30 minutes (10:00AM, 10:30AM, 11:00AM etc), so 2 possible cases after &quot;:&quot;</p>
  <p>-one hour case: all displayed hours must be rounded to 60 minutes (10:00AM, 11:00AM), so after &quot;:&quot; always find only 00.</p>
  <p>How would it be most efficiently developed?</p>
  <p>I hope I have provided all the necessary details. Thank you</p>