Skip to content

Support abstract roles #1282

Open
Open
@Dreamsorcerer

Description

@Dreamsorcerer

Describe the feature you'd like:

It would be useful if we could, for example, get all inputs with getAllByRole('input').
This seems to be one of the abstract roles, and as far as I can tell, these are not supported currently:
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#6._abstract_roles
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/input_role

Expected result is that <input type="text"> would have both textbox and input roles (as input is a superclass of textbox).

This would make testing a lot more flexible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions