API Reference / @gtkx/testing / formatRole
Function: formatRole()
formatRole(
role):string
Defined in: packages/testing/src/role-helpers.ts:24
Converts an accessible role enum value into its lowercase name, falling back to the numeric value when the role is unknown.
Parameters
role
_AccessibleRole
The accessible role to format.
Returns
string