Search posts, tags, users, and pages
Ákos Kőműves
Thanks for sharing this Cathal Mac Donnacha.
I didn't know I could do
expect(screen.getByRole('option', { name: 'Select a country' }).selected).toBe(true)
Cathal Mac Donnacha
Yea it's a much more reliable way of checking it. Glad you found it useful. 👍