https://kotlinlang.org logo
#javascript
Title
# javascript
g

Gerardo Rodriguez

01/23/2023, 9:34 PM
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

turansky

01/23/2023, 9:40 PM
Element.checkVisibility
?
Released in
pre.483
g

Gerardo Rodriguez

01/24/2023, 10:11 AM
Thanks @turansky!
9 Views