-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Selenium UI tests to GitHub Actions CI #183
Comments
This blog post looks relevant too: |
Implementing Selenium testing scheme that works equally well in development and in GitHub Actions has been challenging! GitHub provides binaries for chrome & firefox that can be used in Actions. The equivalent setup for development requires those driver binaries to be installed in the local docker image. The test code needs to be customized for this scheme. A more attractive option is selenium-hub which uses Docker containers that contain browser instances. This works well in development, but fails in GitHub Actions. The problem seems to be the way the docker network is configured in Actions. Here's a SO post describing the problem. I think I proceed with the selenium-hub solution and then tag the UI tests so that they don't run in Actions. At least this way we have a good testing scheme in development. |
Had to revert some of the recent UI "Dash" changes as the page was not rendering in my development browser. This made it easier to develop the Selenium tests which now get executed on a development system, but not in GitHub Actions. Perhaps a minimal set of those changes can be pulled into this branch before merging with main. A set of UI tests (also to be added to this branch) will help assure that those changes don't break anything. |
The Selenium tests work fairly reliably on a local debug.yml development system. Here's a screen shot from VS Code of the tests following a merge from this PR: |
Many more tests still need to be written, but the Selenium framework is in place – at least for a local development server. This is the error reported in GitHub Actions:
Selenium tests are currently turned off for GitHub Actions. |
To test basic User Interface functionality add Selenium tests. There appears to be docker containers for Selenium that can simplify adding it to this project. See:
https://marcgibbons.com/post/selenium-in-docker/
The text was updated successfully, but these errors were encountered: