React-testing-library: Expose sel()

Created on 19 Mar 2018  路  9Comments  路  Source: testing-library/react-testing-library

React Native Web's testID prop emits data-testid instead of data-test. Would be great if this could be set. Seems like you've already thought about it.

Awesome lib Kent!

enhancement good first issue help wanted

All 9 comments

Hi @jaredpalmer! Yeah, that'd be fine with me! Feel free to make a PR to allow that to be configurable :+1:

Actually, I'm thinking of changing this to the default. Want to open a PR?

I鈥檓 out of office right now/today. Womp womp

I'll go ahead and do it right now :+1:

I'm going to go ahead and assume nobody's used the lib yet so I'll push this as a patch release :)

Published 1.0.1

I also updated my blog post about these attributes so it's consistant.

How about expanding the name sel to select? Was reading through the source and found the name confusing at first glance. Only after reading your blog post did I find out what it was short for. I mean it's only going to be 3 characters more 馃槃.

If you agree, I'd be glad to submit a PR for it.

(Really lovin this library btw. Finally found a testing library with a philosophy I agree and am comfortable with)

That'd be fine with me :+1: It's an internal function anyway so I don't mind renaming it to be more clear. Definitely wont be a breaking change :+1:

And by that I mean, yes, I'd love a PR!

Was this page helpful?
0 / 5 - 0 ratings