API Reference / @gtkx/testing / QueryHelpers
Type Alias: QueryHelpers
QueryHelpers =
object
Defined in: packages/testing/src/query-helpers.ts:10
The helpers used to build custom queries, bundled the way DOM Testing Library exposes them.
Properties
buildQueries
buildQueries: typeof
buildQueries
Defined in: packages/testing/src/query-helpers.ts:12
Derives a query family's variants from its queryAllBy function.
getElementError
getElementError: typeof
getElementError
Defined in: packages/testing/src/query-helpers.ts:14
Builds the error a failing query throws.
queryAllByObjectProperty
queryAllByObjectProperty: typeof
queryAllByObjectProperty
Defined in: packages/testing/src/query-helpers.ts:16
Finds every widget whose GObject property matches.
queryByObjectProperty
queryByObjectProperty: typeof
queryByObjectProperty
Defined in: packages/testing/src/query-helpers.ts:18
Finds the single widget whose GObject property matches.