Skip to content

Commit f5f369c

Browse files
nickservKent C. Dodds
authored and
Kent C. Dodds
committed
docs: replace getElementByText with getElement (testing-library#82)
1 parent 6a8312d commit f5f369c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ for a full list as well as default `eventProperties`.
505505
```javascript
506506
// <button>Submit</button>
507507
const rightClick = {button: 2}
508-
fireEvent.click(getElementByText('Submit'), rightClick)
508+
fireEvent.click(getByText('Submit'), rightClick)
509509
// default `button` property for click events is set to `0` which is a left click.
510510
```
511511

0 commit comments

Comments
 (0)