You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Sage 200 our automation testers are interested in being able to find validation messages by id so that they can check the content.
For most components like Textbox, I can see the id/name of the textbox ends up getting passed down to the validation as {id/name}-validation and our testers can use this to check an input shows the right validation text.
I can see for most inputs an id is being passed to your internal component but this isn't the case for the .
Pass an id in the same way as components like Textbox do.
Carbon version
132.2.1
Design tokens version
4.17.0
Relevant browsers
Firefox, Chrome, Safari, Microsoft Edge
Relevant OSs
MacOS, Windows, Linux, Android, iOS
Additional context
For some additional context, our automation find fields by label. Once we find a label, we can use the for attribute to find things like the underlying input, and we'd like to be able to do the same thing for checking things like validation messages.
Confidentiality
I confirm there is no confidential or commercially sensitive information included.
The text was updated successfully, but these errors were encountered:
Added id prop allows consumers to set a custom id on the group component, otherwise it will be set
to a randomly generated GUID. `id` prop is needed to set hint text and validation ids for
accessibility and testing purposes.
fix#7191
Added id prop allows consumers to set a custom id on the group component, otherwise it will be set
to a randomly generated GUID. `id` prop is needed to set hint text and validation ids for
accessibility and testing purposes.
fix#7191
Description
On Sage 200 our automation testers are interested in being able to find validation messages by id so that they can check the content.
For most components like Textbox, I can see the id/name of the textbox ends up getting passed down to the validation as
{id/name}-validation
and our testers can use this to check an input shows the right validation text.I can see for most inputs an id is being passed to your internal component but this isn't the case for the .
Reproduction
Sage/carbon/src/components/radio-button/radio-button-group/radio-button-group.component.tsx
Steps to reproduce
No response
JIRA ticket numbers (Sage only)
No response
Suggested solution
Pass an id in the same way as components like Textbox do.
Carbon version
132.2.1
Design tokens version
4.17.0
Relevant browsers
Firefox, Chrome, Safari, Microsoft Edge
Relevant OSs
MacOS, Windows, Linux, Android, iOS
Additional context
For some additional context, our automation find fields by label. Once we find a label, we can use the
for
attribute to find things like the underlying input, and we'd like to be able to do the same thing for checking things like validation messages.Confidentiality
The text was updated successfully, but these errors were encountered: