sirix-web-frontend
sirix-web-frontend copied to clipboard
Setup some CI/CD tests
Have to read about how to test the frontend stuff... besides Unit Tests for some stuff.
I recommend using a webdriver. Selenium is a good one, and it works well with Python if you import selenium-python. @mosheduminer is setting up a Python library if I'm not mistaken.
I don't know your guys' dev environs, but it's easy to simply import selenium in a text editor / Sublime/VS Code and go from there: https://selenium-python.readthedocs.io/
I'm more of a Java/Kotlin engineer, but Python may be okay, too, for sure :-) thanks
I found a step-by-step guide for setting up Selenium in Java (Selenium has a lot of support) here.
It would add a dependency, however, as you'd need to install gecko driver for driving through Firefox and adjust a few lines of code. Selenium comes out of the box using Chrome and plays nice with Opera. Hope this helps :)