How to set a data-testid for the following components: Dialog, Window?

1 Answer 18 Views
Dialog Window
Youniss
Top achievements
Rank 1
Iron
Youniss asked on 10 Apr 2025, 09:39 AM | edited on 10 Apr 2025, 09:40 AM

Hello,

 

We are running end-to-end tests against the following components:

- Dialog: https://www.telerik.com/kendo-react-ui/components/dialogs/dialog

- Window: https://www.telerik.com/kendo-react-ui/components/dialogs/window

 

How do we set a `data-testid` for the following components?

`data-testid` seems to be ignored when giving it as props to the components.

 

Thank you in advance

1 Answer, 1 is accepted

Sort by
0
Accepted
Vessy
Telerik team
answered on 14 Apr 2025, 11:32 AM

Hi, Youniss,

The setup of any custom attribute to Kendo React Editor can be done by using its 'ref' definition:

The below example showcases this approach:

I hope this helps but let em know should I can assist you any further on this matter.

    Regards,
    Vessy
    Progress Telerik

    Enjoyed our products? Share your experience on G2 and receive a $25 Amazon gift card for a limited time!

    Youniss
    Top achievements
    Rank 1
    Iron
    commented on 15 Apr 2025, 09:51 AM

    Thank you, it works!
    Vessy
    Telerik team
    commented on 15 Apr 2025, 10:00 AM

    You are most welcome, Youniss :)
    Tags
    Dialog Window
    Asked by
    Youniss
    Top achievements
    Rank 1
    Iron
    Answers by
    Vessy
    Telerik team
    Share this question
    or