Skip to content

API Reference / @gtkx/testing / queryByRole

Variable: queryByRole

const queryByRole: BuiltinQueries["queryByRole"]

Defined in: packages/testing/dist/queries.d.ts:11

Returns the single mapped widget with a matching accessible role and options, or null when none match. Widgets that are not mapped are never matched. Throws when more than one matches.

Released under the MPL-2.0 License.