Layout labels use ambiguous target in `for` attribute
Layouts like
{
grow: true,
type: 'value',
label: 'group name',
editable: editable,
value: data.group_name,
component: {
Text: {
variant: 'standard',
},
},
}
lead to <label>
s with for="input"
instead of a unique id for the related form control. Using screen.getByLabelText
then fails with:
TestingLibraryElementError: Found a label with the text of: group name, however no form control was found associated to that label. Make sure you're using the "for" attribute or "aria-labelledby" attribute correctly.