title: Cypress - How do I wait to select dropdown to load all options?
body: <pre><code>cy.get(&quot;#severities&quot;).then(($optionsArray) =&gt; {
             expect($optionsArray.get(0)).to.have.property('childElementCount', 6) 
         let optionVal = new Array()
         optionVal = $optionsArray.children()
         var randomChoice = optionVal[Math.floor(Math.random() * optionVal.length) + 1]
         addAppointment.selectSeverity(randomChoice.text)
         })
  </code></pre>
  <p>The <code>expect</code> assert will fail because not all options are loaded.</p>
  <ul>
  <li><code>expected '&lt;select#severities.form-control&gt;' to have property 'childElementCount' of 7, but got 1</code></li>
  </ul>
  <p>Is there any way to do it with cypress? if not, then with jQuery?</p>