Skip to content

Commit 901a272

Browse files
eps1lonMatanBobi
andauthored
Update docs/queries/byrole.mdx
Co-authored-by: Matan Borenkraout <Matanbobi@gmail.com>
1 parent f2c6c82 commit 901a272

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/queries/byrole.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ To learn more about the `aria-level` property, see
331331

332332
A range widget can be queried by any value `getByRole('heading')` or by a
333333
specific value using the `level` option
334-
`getByRole('heading', { value: { now: 5, min: 0, max: 10, text: 'medium' } })`.
334+
`getByRole('spinbutton', { value: { now: 5, min: 0, max: 10, text: 'medium' } })`.
335335

336336
Note that you don't have to specify all properties in `value`. A subset is
337337
sufficient e.g. `getByRole('heading', { value: { now: 5, text: 'medium' } })`.

0 commit comments

Comments
 (0)