Skip to content

Commit 8403e84

Browse files
Jonah MosesKent C. Dodds
Jonah Moses
authored and
Kent C. Dodds
committed
docs: update readme for getByLabelText (#24)
1 parent 12c7ed1 commit 8403e84

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.all-contributorsrc

+9
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,15 @@
7676
"contributions": [
7777
"platform"
7878
]
79+
},
80+
{
81+
"login": "JonahMoses",
82+
"name": "Jonah Moses",
83+
"avatar_url": "https://avatars2.githubusercontent.com/u/3462296?v=4",
84+
"profile": "https://github.com/JonahMoses",
85+
"contributions": [
86+
"doc"
87+
]
7988
}
8089
]
8190
}

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
[![downloads][downloads-badge]][npmtrends]
1717
[![MIT License][license-badge]][license]
1818

19-
[![All Contributors](https://img.shields.io/badge/all_contributors-7-orange.svg?style=flat-square)](#contributors)
19+
[![All Contributors](https://img.shields.io/badge/all_contributors-8-orange.svg?style=flat-square)](#contributors)
2020
[![PRs Welcome][prs-badge]][prs]
2121
[![Code of Conduct][coc-badge]][coc]
2222

@@ -171,7 +171,7 @@ const inputNode = getByLabelText('Username')
171171
// <label><span>Username</span> <input /></label>
172172
//
173173
// For this case, you can provide a `selector` in the options:
174-
const inputNode = getByLabelText('username-input', {selector: 'input'})
174+
const inputNode = getByLabelText('username', {selector: 'input'})
175175
// and that would work
176176
```
177177

@@ -564,6 +564,7 @@ Thanks goes to these people ([emoji key][emojis]):
564564
<!-- prettier-ignore -->
565565
| [<img src="https://avatars.githubusercontent.com/u/1500684?v=3" width="100px;"/><br /><sub><b>Kent C. Dodds</b></sub>](https://kentcdodds.com)<br />[💻](https://github.com/kentcdodds/react-testing-library/commits?author=kentcdodds "Code") [📖](https://github.com/kentcdodds/react-testing-library/commits?author=kentcdodds "Documentation") [🚇](#infra-kentcdodds "Infrastructure (Hosting, Build-Tools, etc)") [⚠️](https://github.com/kentcdodds/react-testing-library/commits?author=kentcdodds "Tests") | [<img src="https://avatars1.githubusercontent.com/u/2430381?v=4" width="100px;"/><br /><sub><b>Ryan Castner</b></sub>](http://audiolion.github.io)<br />[📖](https://github.com/kentcdodds/react-testing-library/commits?author=audiolion "Documentation") | [<img src="https://avatars0.githubusercontent.com/u/8008023?v=4" width="100px;"/><br /><sub><b>Daniel Sandiego</b></sub>](https://www.dnlsandiego.com)<br />[💻](https://github.com/kentcdodds/react-testing-library/commits?author=dnlsandiego "Code") | [<img src="https://avatars2.githubusercontent.com/u/12592677?v=4" width="100px;"/><br /><sub><b>Paweł Mikołajczyk</b></sub>](https://github.com/Miklet)<br />[💻](https://github.com/kentcdodds/react-testing-library/commits?author=Miklet "Code") | [<img src="https://avatars3.githubusercontent.com/u/464978?v=4" width="100px;"/><br /><sub><b>Alejandro Ñáñez Ortiz</b></sub>](http://co.linkedin.com/in/alejandronanez/)<br />[📖](https://github.com/kentcdodds/react-testing-library/commits?author=alejandronanez "Documentation") | [<img src="https://avatars0.githubusercontent.com/u/1402095?v=4" width="100px;"/><br /><sub><b>Matt Parrish</b></sub>](https://github.com/pbomb)<br />[🐛](https://github.com/kentcdodds/react-testing-library/issues?q=author%3Apbomb "Bug reports") [💻](https://github.com/kentcdodds/react-testing-library/commits?author=pbomb "Code") [📖](https://github.com/kentcdodds/react-testing-library/commits?author=pbomb "Documentation") [⚠️](https://github.com/kentcdodds/react-testing-library/commits?author=pbomb "Tests") | [<img src="https://avatars1.githubusercontent.com/u/1288694?v=4" width="100px;"/><br /><sub><b>Justin Hall</b></sub>](https://github.com/wKovacs64)<br />[📦](#platform-wKovacs64 "Packaging/porting to new platform") |
566566
| :---: | :---: | :---: | :---: | :---: | :---: | :---: |
567+
| [<img src="https://avatars2.githubusercontent.com/u/3462296?v=4" width="100px;"/><br /><sub><b>Jonah Moses</b></sub>](https://github.com/JonahMoses)<br />[📖](https://github.com/kentcdodds/react-testing-library/commits?author=JonahMoses "Documentation") |
567568

568569
<!-- ALL-CONTRIBUTORS-LIST:END -->
569570

0 commit comments

Comments
 (0)