dom-testing-library version: 3.18.1react version: 1.18.4node version: 10.15.2npm (or yarn) version: yarn 1.15.2<div>
<input id="some-id" />
<label htmlFor="some-id">
<span>Some Input</span>
</label>
</div>
Just installed react-testing-library after cleaning up my node_modules.
All Tests using getLabelById with nested spans are failing.
https://codesandbox.io/s/0ym9qxzlmp
Recently working tests are now failing without changes in the code or the tests.
Already mentioned here: https://github.com/kentcdodds/dom-testing-library/pull/190#issuecomment-474642984
Honestly, I think the new behavior is problematic and probably never what we want. So I'm going to just revert it.
:tada: This issue has been resolved in version 3.18.2 :tada:
The release is available on:
npm package (@latest dist-tag)Your semantic-release bot :package::rocket:
Most helpful comment
Honestly, I think the new behavior is problematic and probably never what we want. So I'm going to just revert it.