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 876f87d commit e4143e2Copy full SHA for e4143e2
README.md
@@ -630,7 +630,7 @@ array has a length of 0.
630
```javascript
631
import {render} from 'react-testing-library'
632
633
-const {queryByText} = render(<Forms />)
+const {queryAllByText} = render(<Forms />)
634
const submitButtons = queryAllByText('submit')
635
expect(submitButtons).toHaveLength(3) // expect 3 elements
636
expect(submitButtons[0]).toBeInTheDOM()
0 commit comments