cloudfour / cloudfour/pleasantest
Allow passing a list of elements to ignore from getAccessibilityTree
Open
minor change
- Dominant language
- TypeScript
- Stars
- 175
- Forks
- 2
- Avg merge
- 1m
- Merged PRs (30d)
- 1
Description
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:
```ts
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 `` in their place
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.