-
Notifications
You must be signed in to change notification settings - Fork 410
Closed
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomersreleased
Description
expect(userSelect).toHaveDisplayValue(/bezos/i)
doesn't work, instead it converts /bezos/i
to string and tries to do a literal string match, as seen in the error:
Expected element to have display value:
/bezos/i
Received:
bezos
I'd like to stick with regex because the way we format HTML, it creates leading and trailing whitespaces, which prevent the match.
<option>
{{u.name}}
</option>
It won't be very pretty to have tests that look like expect(userSelect).toHaveDisplayValue(" bezos ")
, ugly and error prone.
gnapse
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomersreleased