Skip to content

API Reference / @gtkx/testing / getByRole

Variable: getByRole

const getByRole: 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.

Released under the MPL-2.0 License.