Testing: UI
danmihaila opened this issue · comments
Dan Mihaila commented
- Research Selenium vs. other options
- Setting up again Selenium for automated browser testing
- dev documentation how to run local
- research if/how Selenium could be integrated with docker, stag/prod servers, etc.
Alexandru Gartner commented
After discussions with @aalecs it seems that we have 2 options:
- using Selenium as we did before
- using Protractor:
- might make it easier to test angular applications
- actually ( in the backend it uses the Selenium WebDriver )
About running the tests on the server side or Travis:
- we could run them headless by using XVFB ( a virtual X server )
- we could run them headless by using phantomJS
- run the tests on other servers ( like a Selenium cloud ) and have Travis connect to the server to trigger the start of the tests
Alexandru Gartner commented
Created a small test in Selenium for map explorer. It just loads a data slice, checks that map and chart are loaded and then removes it and checks that the map and chart have disappeared: OCHA-DAP/hdx-ckan-selenium@e0ab9eb