anyone got an example of proper kotlin/js integration tests?
r
Rob Murdock
09/14/2023, 4:40 PM
what kind of tests are you imagining?
c
Chrys
09/14/2023, 4:42 PM
one where I'd spin a browser and assert that some ui elements are presents
r
Rob Murdock
09/14/2023, 4:44 PM
if all you mean is "run tests in a browser context", the gradle js "browser" setup uses karma to do that, and you can use stuff like testing library to mount components and verify them individually
if you mean something along the selenium / webdriver route, I've written some kotlin + gradle wrappers for using 'wdio'.
haven't looked in a while, but AFAIK no one's tried to setup cypress with kotlin with preconfiguration yet
Rob Murdock
09/14/2023, 4:45 PM
probably the path of least resistance for component integration testing is using the default karma setup plus testing library to mount at the level you'd like
c
Chrys
09/14/2023, 4:47 PM
I'm definitely on the karma route. I wanted some example code to bench from