API Reference / @gtkx/testing / Suggestion
Type Alias: Suggestion
Suggestion =
object
Defined in: packages/testing/dist/suggestions.d.ts:10
A suggested query for reaching a widget, including its family, variant, method name, and a toString that renders the full call.
Properties
queryMethod
queryMethod:
string
Defined in: packages/testing/dist/suggestions.d.ts:14
The full query function name, such as getByRole.
queryName
queryName:
Method
Defined in: packages/testing/dist/suggestions.d.ts:12
The query family, such as Role.
toString
toString: () =>
string
Defined in: packages/testing/dist/suggestions.d.ts:18
Renders the suggested call with its arguments, such as getByRole(Gtk.AccessibleRole.BUTTON).
Returns
string
variant
variant:
Variant
Defined in: packages/testing/dist/suggestions.d.ts:16
The variant the suggestion was asked for, which prefixes Suggestion.queryMethod.