I'm trying to assert that the default option "AUTO" is displayed on the following dropdown.
<select id="wifi2.4">
<option class="" value="" >AUTO</option>
<option value="0">1 - 2412 MHz</option>
<option value="1">2 - 2417 MHz</option>
<option value="2">3 - 2422 MHz</option>
<option value="3">4 - 2427 MHz</option>
</select>
I have tried the following:
cy.get('div.medium-2:nth-child(2) > select:nth-child(1)').should('have.value', 'AUTO')
But this is returning [...to have value 'AUTO', but the value was '' ] and using 'have.text...' just returns all the options in the list.
would really appreciate it if someone could point me in the right direction :-)