Skip to content
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

Merged
merged 2 commits into from
Nov 7, 2024

Conversation

Restioson
Copy link
Collaborator

@Restioson Restioson commented Nov 6, 2024

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.

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).
@Restioson Restioson force-pushed the test/multiple-browser-selenium branch 2 times, most recently from c9f71f3 to df38598 Compare November 6, 2024 13:14
@Restioson Restioson marked this pull request as ready for review November 6, 2024 13:15
@Restioson Restioson force-pushed the test/multiple-browser-selenium branch from df38598 to 06f7020 Compare November 6, 2024 13:17
Copy link
Contributor

@friedelwolff friedelwolff left a 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.

@Restioson
Copy link
Collaborator Author

Restioson commented Nov 7, 2024

First commit message: suppose -> expose/support?

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)."

The text wrapping of your commit message is odd - lines starting with spaces.

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 👍

If you can reference the issue for macOS, it would be nice.

I will create it now!

@Restioson Restioson self-assigned this Nov 7, 2024
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).
@Restioson Restioson force-pushed the test/multiple-browser-selenium branch from dcaec1c to ce0bdf4 Compare November 7, 2024 09:55
@Restioson Restioson merged commit 4410af2 into main Nov 7, 2024
7 checks passed
@Restioson Restioson deleted the test/multiple-browser-selenium branch November 7, 2024 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Re-running Selenium on Firefox and no-JS
2 participants