File tree 1 file changed +3
-2
lines changed 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ when a real user uses it.
77
77
- [ ` getByAltText ` ] ( #getbyalttext )
78
78
- [ ` getByTitle ` ] ( #getbytitle )
79
79
- [ ` getByValue ` ] ( #getbyvalue )
80
+ - [ ` getByRole ` ] ( #getbyrole )
80
81
- [ ` getByTestId ` ] ( #getbytestid )
81
82
- [ ` wait ` ] ( #wait )
82
83
- [ ` waitForElement ` ] ( #waitforelement )
@@ -361,15 +362,15 @@ getByRole(
361
362
exact?: boolean = true ,
362
363
collapseWhitespace?: boolean = false ,
363
364
trim?: boolean = true ,
364
- }): HTMLElement `
365
+ }): HTMLElement
365
366
```
366
367
367
368
A shortcut to `` container.querySelector(`[role="${yourRole}"]`) `` (and it
368
369
also accepts a [ ` TextMatch ` ] ( #textmatch ) ).
369
370
370
371
``` javascript
371
372
// <div role="dialog">...</div>
372
- const dialogContainer = getByTestrole (container, 'dialog')
373
+ const dialogContainer = getByRole (container, ' dialog' )
373
374
```
374
375
375
376
### ` getByTestId `
You can’t perform that action at this time.
0 commit comments