-
Notifications
You must be signed in to change notification settings - Fork 468
feat: Include hidden elements by default #392
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
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 338e4d2:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making this. Just a few notes.
I want to make sure we're in sync here: This changes the default value. This basically restores the behavior to where it was before ByRole got introduced. |
Co-Authored-By: Kent C. Dodds <me+github@kentcdodds.com> Co-Authored-By: Adrià Fontcuberta <afontcu@gmail.com>
Co-Authored-By: Adrià Fontcuberta <afontcu@gmail.com>
ea9307e
to
338e4d2
Compare
I'm starting to think that it's ok to leave this enabled by default. My biggest challenge making this decision is that I no longer have a codebase with a bunch of tests to get a feel for what the real-world runtime of tests will be like. All I have to go off of is from folks like @oliviertassinari and others who are running thousands of tests. I think that running 2000+ tests in less than a minute is pretty good personally, especially considering the improved confidence you're getting. I'd really love to hear from others though. |
@kentcdodds I think that @eps1lon has one of the best positions to provide a great answer this tradeoff. I have personally too limited context. I can only relate what I have experienced. My observations with Material-UI's have been: 1. performance slowness comes from style computation ( |
I think you're right. @eps1lon, I defer to you. What do you suggest we do? |
I wasn't a fan of introducing the original change as non-breaking and would therefore not introduce another one (we already got two reports). I'd say we keep the old default and make it configurable so that folks who actually measure a non-tolerable performance hit can deactivate this feature. But I wouldn't advertise it too much. Usually we should stay below 100ms cost which is perfectly fine. For folks running their whole test suite while working I can only recommend not doing that since it penalizes additional tests which is not a situation you want to be in. jest has an awesome cli to help with these issues (mocha not so much) and both have the option to put (ir)relevant tests on a allow/disallow list. |
Sounds great. Let me know when you have something for me to review/merge and we'll make it happen. 👍 |
#398 extracts the configure feature from this PR. |
Thanks @eps1lon 👍 |
What:
hidden
is nowtrue
meaning inaccessible roles are included by defaultWhy:
How:
Checklist:
docs site
DefinitelyTyped