API Reference / @gtkx/testing / Suggestion
Type Alias: Suggestion
Suggestion =
object
Defined in: packages/testing/src/suggestions.ts:23
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/src/suggestions.ts:27
The full query function name, such as getByRole.
queryName
queryName:
Method
Defined in: packages/testing/src/suggestions.ts:25
The query family, such as Role.
toString
toString: () =>
string
Defined in: packages/testing/src/suggestions.ts:31
Renders the suggested call with its arguments, such as getByRole(Gtk.AccessibleRole.BUTTON).
Returns
string
variant
variant:
Variant
Defined in: packages/testing/src/suggestions.ts:29
The variant the suggestion was asked for, which prefixes Suggestion.queryMethod.