API Reference / @gtkx/testing / getRoles
Function: getRoles()
getRoles(
container):Map<string,Widget[]>
Defined in: packages/testing/src/role-helpers.ts:58
Groups every mapped widget in a container's tree by its accessible role name. Widgets that are not mapped are left out.
Parameters
container
The scope to traverse.
Returns
Map<string, Widget[]>
A map from role name to the mapped widgets that have that role.