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

Tweak Jasmine config to use custom browser on MacOSX (arm64) #1482

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

oleh-demyanyuk
Copy link

No description provided.

@jackocnr
Copy link
Owner

jackocnr commented Dec 7, 2023

Hi there, can you provide some information on why this is needed?

@oleh-demyanyuk
Copy link
Author

Hi @jackocnr
I've had troubles running npm test on MacOSX with recent chromedriver (installed via brew).
Currently new popular way is to use Google Chrome for Testing
https://developer.chrome.com/blog/chrome-for-testing

So I've tweaked config to be able to run against Google Chrome for Testing .
After test passed I was able to build lib on MacOSX and integrate into rails related lib.
You can ignore it, or rewrite as you see it.
Regards

@carlssonemil
Copy link
Contributor

For anyone coming here having the same problems as @oleh-demyanyuk above, this is how I got it working on my M1 MacBook:

  1. Follow the steps in this guide to get Chromium installed on your machine
  2. Manually override the hardcoded path to Chromium (🤦) in the Launcher.js file in node_modules/puppeteer (more detailed info can be found in this comment)

The environmental variables you set in your ~/.zshrc to define where Chromium is installed doesn't work for some reason. And I'm guessing you have to manually change this if you run npm install again after this.

Repository owner deleted a comment from iflows-robert Mar 29, 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.

None yet

3 participants