File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { ReactTestInstance } from 'react-test-renderer' ;
2
2
import { getConfig } from '../config' ;
3
- import { isInaccessible } from './accessiblity' ;
3
+ import { isHiddenFromAccessibility } from './accessiblity' ;
4
4
5
5
interface FindAllOptions {
6
6
hidden ?: boolean ;
@@ -19,5 +19,7 @@ export function findAll(
19
19
}
20
20
21
21
const cache = new WeakMap < ReactTestInstance > ( ) ;
22
- return results . filter ( ( element ) => ! isInaccessible ( element , { cache } ) ) ;
22
+ return results . filter (
23
+ ( element ) => ! isHiddenFromAccessibility ( element , { cache } )
24
+ ) ;
23
25
}
Original file line number Diff line number Diff line change @@ -382,7 +382,7 @@ All queries have the `hidden` option which enables them to respect accessibility
382
382
383
383
You can configure the default value with the [ ` configure ` function] ( API.md#configure ) .
384
384
385
- An element is considered to be hidden from accessibility based on [ ` isInaccessible ()` ] ( ./API.md#isinaccessible ) function result .
385
+ An element is considered to be hidden from accessibility based on [ ` isHiddenFromAccessibility ()` ] ( ./API.md#ishiddenfromaccessibility ) function.
386
386
387
387
** Examples**
388
388
You can’t perform that action at this time.
0 commit comments