I'd like getByLabelText to resolve the contents of aria-labelledby and associated elements. As I'm writing this it occurs to me that this might be too costly and perhaps better suited to something like axe.
Describe alternatives you've considered:
I've resorted to a combination of getByRole + getByText and checking IDs.
Describe the feature you'd like:
I'd like
getByLabelText
to resolve the contents ofaria-labelledby
and associated elements. As I'm writing this it occurs to me that this might be too costly and perhaps better suited to something like axe.Describe alternatives you've considered:
I've resorted to a combination of
getByRole + getByText
and checking IDs.Teachability, Documentation, Adoption, Migration Strategy:
The summarised/pseudo code looks something like:
The desired test would look something like: