cloudfour / cloudfour/pleasantest

Allow passing a list of elements to ignore from getAccessibilityTree

Open
#378 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.