OCHA-DAP / hdx-ckan

A repo for HDX's configurations and extensions to CKAN

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Testing: UI

danmihaila opened this issue · comments

  • 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.

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

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