So i’ve ran into a strange issue. I have a standard select “combobox” that has a selected value by default when going to the page.
However checking the inputValue()
returns nothing. Similarly printing the textContents
prints all the options (in this case “States” in the U.S., It’s a state selector box, so nothing fancy)
I would expect using a toHaveValue()
would’ve been the simple way of knowing which was chosen…but apparently this does not work?
Is there a better way to verify the selected value/option is a specific text?