cloudfour/pleasantest

Allow getAccessibilityTree to be case-insensitive

Open

#379 opened on Jan 26, 2022

View on GitHub
 (0 comments) (0 reactions) (0 assignees)TypeScript (2 forks)auto 404
good first issueminor change

Repository metrics

Stars
 (175 stars)
PR merge metrics
 (PR metrics pending)

Description

We could make it ignore case changes by always lowercasing the output

await getAccessibilityTree(
  el,
  {
    caseInsensitive: true
  }
)

I am not sure yet if this is a useful enough feature since it depends on how often the case of the text changes without the text itself changing. If that happens often, this could be useful, but otherwise, I'm not sure this feature is worth it.

Contributor guide