Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass thru data-testid for automated testing (cypress/playwright/...) #11710

Open
gerwinbrunner opened this issue Mar 11, 2024 · 0 comments
Open

Comments

@gerwinbrunner
Copy link

Summary

it would be great if all data-... props to a component would be passed thru.

It works for Box, but does not for i.e. Page component.

This is a repost of:
#3056

Rationale

To do automated testing with i.e. cypress you would need in some cases to set the data-testid prop on specific elements.

This is not possible to do with just the id prop (multiple elements of the same kind)
or with plain xpath expressions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant