OpenDataScotland / jkan

A lightweight, backend-free open data portal, powered by Jekyll, based on the JKAN project
https://opendata.scot
MIT License
6 stars 13 forks source link

Set up Selenium tests for opendata.scot #18

Open JackGilmore opened 1 year ago

JackGilmore commented 1 year ago

Is your feature request related to a problem? Please describe. Adding some browser simulation tests that can be ran to make sure that the website is functioning as normal. To be ran either after a new site publish (usually on a weekly basis) or for testing when adding new features.

Describe the solution you'd like Browser tests using Selenium to check various aspects of the website:

Selenium tests can be written using Python https://vknight.org/unpeudemath/code/2014/12/23/using_python_and_selenium_for_a_jekyll_site.html

Describe alternatives you've considered N/A

Additional context N/A

JackGilmore commented 1 year ago

NB: BrowserStack (online utility for testing different browsers) has a free community option for open source projects https://www.browserstack.com/open-source