<!-- * Please fill out this template with all the relevant information so we can understand what's going on and fix the issue. We appreciate bugs filed and PRs submitted! * Please make sure that you are familiar with and follow the Code of Conduct for this project (found in the CODE_OF_CONDUCT.md file). We'll probably ask you to submit the fix (after giving some direction). If you've never done that before, that's great! Check this free short video tutorial to learn how: http://kcd.im/pull-request If this is an issue with the documentation, please file an issue in the docs repo: https://github.com/alexkrolick/testing-library-docs --> - `dom-testing-library` version: 3.18.1 - `react` version: 1.18.4 - `node` version: 10.15.2 - `npm` (or `yarn`) version: yarn 1.15.2 ### Relevant code or config: ```jsx <div> <input id="some-id" /> <label htmlFor="some-id"> <span>Some Input</span> </label> </div> ``` ### What you did: Just installed `react-testing-library` after cleaning up my `node_modules`. ### What happened: All Tests using `getLabelById` with nested `spans` are failing. ### Reproduction: https://codesandbox.io/s/0ym9qxzlmp ### Problem description: 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 ### Suggested solution: <!-- It's ok if you don't have a suggested solution, but it really helps if you could do a little digging to come up with some suggestion of how to improve things. -->