File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,8 @@ for other popular assertion libraries:
77
77
78
78
- [ chai-dom] ( https://github.com/nathanboktae/chai-dom )
79
79
80
- If you're aware of some other alternatives, please [ make a pull request] ( https://github.com/testing-library/testing-library-docs/pulls )
80
+ If you're aware of some other alternatives, please
81
+ [ make a pull request] ( https://github.com/testing-library/testing-library-docs/pulls )
81
82
and add it here!
82
83
83
84
## ` getNodeText `
@@ -185,6 +186,19 @@ console.log(getRoles(nav))
185
186
// }
186
187
```
187
188
189
+ ## ` shouldExcludeFromA11yTree `
190
+
191
+ This function will compute if the given element should be excluded from the
192
+ accessibility API by the browser. It implements every ** MUST** criteria from
193
+ https://www.w3.org/TR/wai-aria-1.2/#tree_exclusion with the exception of
194
+ checking the ` role ` attribute.
195
+
196
+ It is defined as:
197
+
198
+ ``` typescript
199
+ function shouldExcludeFromA11yTree(element : Element ): boolean
200
+ ```
201
+
188
202
## Debugging
189
203
190
204
When you use any ` get ` calls in your test cases , the current state of the
You can’t perform that action at this time.
0 commit comments