Skip to content

Support for testing-library #1117

Answered by akleiner2
WebDevTmas asked this question in Ideas
Nov 29, 2020 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

@WebDevTmas You should be able to pass test-id as a prop to all Evergreen components. Evergreen embraces "passthrough props" so anything that isn't captured by ui-box and transformed into a classname ends up on the rendered DOM element itself.

Check out the codesandbox below, and inspect the <Pane /> to see that test-id ends up in the DOM.

https://codesandbox.io/s/jolly-keldysh-5hnl9?file=/src/App.js

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@WebDevTmas
Comment options

@akleiner2
Comment options

Answer selected by akleiner2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants