Hi everyone! Is there a library/helper methods to ...
# javascript
g
Hi everyone! Is there a library/helper methods to get visibility of an element like in Android Espresso or Jetpack Compose easily instead of:
Copy code
assertEquals("none", window.getComputedStyle(root.firstChild as HTMLElement).display)
Maybe something like:
onNode(withId(xxx)).assertIsVisible()
Other helper functions would be amazing for tests Thanks!!!
t
Element.checkVisibility
?
Released in
pre.483
g
Thanks @turansky!