-
Notifications
You must be signed in to change notification settings - Fork 0
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
test: run Selenium tests on more browsers/JS configurations #144
Conversation
This prepares the ground for Selenium tests to be run in a Matrix strategy with multiple different configurations (with JS, without JS, Firefox, Chrome, etc).
c9f71f3
to
df38598
Compare
df38598
to
06f7020
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First commit message: suppose -> expose/support?
The text wrapping of your commit message is odd - lines starting with spaces.
If you can reference the issue for macOS, it would be nice.
I'm not quite sure what you mean? The commit message I have is "this prepares the ground for Selenium tests to be run in a Matrix strategy with multiple different configurations (with JS, without JS, Firefox, Chrome, etc)."
I noticed this and updated it locally a while back - seems like it got overwritten by something in the meanwhile though. I'll make sure to update it when squashing up the PR 👍
I will create it now! |
By passing the browser type and whether JS is enabled via environment variables, we can run the Selenium frontend tests on all combinations of targetted browsers and JS/no-JS in the CI pipeline. For now, we are not targetting Safari for this, as the GitHub Actions MacOS workers don't suppose `services`, which we use to run the postgres database. This will be left for a follow-up (see issue #145).
dcaec1c
to
ce0bdf4
Compare
By passing the browser type and whether JS is enabled via environment variables, we can run the Selenium front-end tests on all combinations of targeted browsers and JS/no-JS in the CI pipeline. The way it works from the CI perspective is by using a Matrix strategy which is then substituted into an environment variable when calling
manage.py test --tag=selenium
Fixes #143. However, #145 is not addressed, as this PR doesn't tackle Safari. This is because GitHub Actions MacOS workers don't support
services
, which we use to run the postgres database. This can be left for a follow-up PR.