Skip to content

Commit 77358a8

Browse files
authored
Add another case
1 parent 915a1cb commit 77358a8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/dom-testing-library/api-queries.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,16 @@ For that you can use the `selector` option:
145145
<label id="username">Username</label>
146146
<input aria-labelledby="username" />
147147
<span aria-labelledby="username">Please enter your username</span>
148+
149+
// Multiple labels with the same text
150+
<label>
151+
Username
152+
<input />
153+
</label>
154+
<label>
155+
Username
156+
<textarea></textarea>
157+
</label>
148158
```
149159

150160
```js

0 commit comments

Comments
 (0)