When this worked, my first thought was:
Go home, vitest! You're drunk.
But it makes sense once you understand that the hidden option refers to elements hidden from the accessibility tree.
In my case, I wanted to refer to an icon within a button.
How would you have named this option?
Go home, vitest! You're drunk.
But it makes sense once you understand that the hidden option refers to elements hidden from the accessibility tree.
In my case, I wanted to refer to an icon within a button.
How would you have named this option?
Comments
The whole point of the `.isVisible()` assertion is to make sure if it's visible (fully, also in a a11y sense) so theoretically in this case we would need to use `.toBeInTheDocument()` no?
https://github.com/testing-library/jest-dom#toBeVisible
Still, another term like omitted, or inaccessible would prevent me from mixing it up with actual visibility.