We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddbc409 commit c96cd4eCopy full SHA for c96cd4e
README.md
@@ -562,7 +562,10 @@ const usernameInputElement = getByTestId('username-input')
562
</summary>
563
564
`getByTestId` is looking for the `data-testid` attribute and that's not going to
565
-change
+change. This follows the precident set by
566
+[React Native Web](https://github.com/kentcdodds/react-testing-library/issues/1)
567
+which uses a `testID` prop which emits a `data-testid` attribute on the element.
568
+
569
[#76](https://github.com/kentcdodds/dom-testing-library/issues/76#issuecomment-406321122)
570
[#128](https://github.com/kentcdodds/dom-testing-library/issues/128)
571
[#204](https://github.com/kentcdodds/react-testing-library/issues/204).
0 commit comments