API Reference / @gtkx/testing / getByRole
Variable: getByRole
constgetByRole:BuiltinQueries["getByRole"]
Defined in: packages/testing/dist/queries.d.ts:21
Returns the single mapped widget with a matching accessible role and options. Widgets that are not mapped are never matched. Throws when none or more than one matches.