I have succeeded in writing unit test for kotlin/j...
# javascript
a
I have succeeded in writing unit test for kotlin/js. Can someone please direct me on how I can start writing UI tests with kotlin/js? specifically be able to run them in a CI environment?
r
Copy code
testTask {
                useKarma {
                    useChromeHeadless()
                }
            }
It works fine for me with different CI
a
With UI tests? How do I set it up? What testing framework are you using? cypress? puppeteer? selenium?
r
No, unfortunately I'm not using any dedicated framework so I can't help.
a
So, you do UI testing with kolin/js without a framework? Please please please share that knowledge with me. I am in dire need of it
r
I'm doing some simple UI testing for my components in KVision framework. Without dedicated framework, just some simple DOM and jQuery calls. Like this: https://github.com/rjaros/kvision/blob/master/kvision-modules/kvision-bootstrap/src/test/kotlin/test/pl/treksoft/kvision/modal/AlertSpec.kt
a
Thank you so much. I am definitely stealing
interface DomSpec