API Reference / @gtkx/testing / queryAllByObjectProperty
Function: queryAllByObjectProperty()
queryAllByObjectProperty<
T>(property,container,text,options?):T[]
Defined in: packages/testing/src/query-helpers.ts:60
Finds every widget carrying a GObject property whose value matches, the counterpart of DOM Testing Library's queryAllByAttribute. The property name may be given in kebab-case or camelCase, and widgets that are not mapped are never matched.
Type Parameters
T
T extends Accessible = Widget
Parameters
property
string
Name of the GObject property to read.
container
Widget subtree to search.
text
Matcher for the property's value.
options?
Text matching options.
Returns
T[]
Every matching widget, or an empty array when none match.