Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow passing a list of elements to ignore from getAccessibilityTree #378

Open
calebeby opened this issue Jan 26, 2022 · 0 comments
Open

Comments

@calebeby
Copy link
Member

calebeby commented Jan 26, 2022

Sometimes some elements cause a lot of clutter and don't help the test. We could allow passing an array of elements or a function to exclude them:

await getAccessibilityTree(
  el,
  {
    ignore: [someEl, otherEl],
    // or: ignore: (el) => el.classList.includes('something')
  }
)

In the snapshot output, we could either exclude them entirely or we could show <ignored> in their place

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant