We have a dropdown select
<select id="favorite-colors" multiple>
<option value="R">Red</option>
<option value="G">Green</option>
<option value="B">Blue</option>
</select>
In playwright we can use to check the value
expect(locator).to_have_values([re.compile(r"R"), re.compile(r"G")])
See: https://playwright.dev/python/docs/api/class-locatorassertions#locator-assertions-to-have-values
But how can I use the expect to check if the selection is "Red" or "Green" or "Blue" - so instead of the value (R, G, B), base on the text of the options We do not have indicator for "selected" - how should I expect if an option selected?