-
Notifications
You must be signed in to change notification settings - Fork 410
Closed
Description
I'm testing a labeled select that I query with getByLabelText
, I then want to assert that the select has a default display name, but I can't find a jest matcher for that, here a snippet example:
const select = screen.getByLabelText('Fruits')
expect(select).toBeVisible()
expect(select).toHaveDisplayValue('Select a fruit')
For now I think I should write a custom matcher myself, or a more complicated query 🤔
Metadata
Metadata
Assignees
Labels
No labels