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

Disable :js tests if Chrome is unavailable #2752

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

thomasleese
Copy link
Contributor

We use Google Chrome (via Cuprite) to run feature tests with client-side JavaScript. This updates the spec_helper to first detect whether Chrome is available, and if not, disable :js tests. This is because not all developers will have Chrome available on their machine.

We've only got one test that requires JavaScript so I thought this would be a simpler approach for now, if we add more then we might want to consider adding a Selenium WebDriver for Firefox or Safari as an alternative.

Copy link
Member

@tvararu tvararu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've only got one test that requires JavaScript so I thought this would be a simpler approach for now, if we add more then we might want to consider adding a Selenium WebDriver for Firefox or Safari as an alternative.

Rather use PlayWright if testing Firefox/Safari is ever a need 👍

Base automatically changed from js-spec to main December 16, 2024 10:26
We use Google Chrome (via Cuprite) to run feature tests with client-side
JavaScript. This updates the `spec_helper` to first detect whether Chrome
is available, and if not, disable `:js` tests. This is because not all
developers will have Chrome available on their machine.

We've only got one test that requires JavaScript so I thought this
would be a simpler approach for now, if we add more then we might want
to consider adding a Selenium WebDriver for Firefox or Safari as an
alternative.
@thomasleese thomasleese force-pushed the run-tests-without-chrome branch from 1f9f9b4 to db37666 Compare December 16, 2024 10:27
@tvararu tvararu temporarily deployed to mavis-pr-2752 December 16, 2024 10:27 Inactive
@thomasleese thomasleese merged commit c56af13 into main Dec 16, 2024
13 checks passed
@thomasleese thomasleese deleted the run-tests-without-chrome branch December 16, 2024 10:35
@tvararu tvararu added this to the v1.1.1 milestone Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants