Skip to content

Commit b339077

Browse files
authored
Usage of exact option with *byRole queries (#1192)
1 parent 1a5b369 commit b339077

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/queries/about.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,8 @@ can contain options that affect the precision of string matching:
295295
- `exact`: Defaults to `true`; matches full strings, case-sensitive. When false,
296296
matches substrings and is not case-sensitive.
297297
- `exact` has no effect on `regex` or `function` arguments.
298+
- `exact` has no effect on accessible names specified with the `name` option of `*byRole`
299+
queries. You can use a regex for fuzzy matching on accessible names.
298300
- In most cases using a regex instead of a string gives you more control over
299301
fuzzy matching and should be preferred over `{ exact: false }`.
300302
- `normalizer`: An optional function which overrides normalization behavior. See

0 commit comments

Comments
 (0)